incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1166698 - /sling/trunk/bundles/extensions/groovy/src/main/java/org/apache/sling/extensions/groovy/scripting/internal/GSPScriptEngineFactory.java
Date Thu, 08 Sep 2011 14:07:17 GMT
Author: justin
Date: Thu Sep  8 14:07:17 2011
New Revision: 1166698

URL: http://svn.apache.org/viewvc?rev=1166698&view=rev
Log:
adding proper metadata for GSP script engine

Modified:
    sling/trunk/bundles/extensions/groovy/src/main/java/org/apache/sling/extensions/groovy/scripting/internal/GSPScriptEngineFactory.java

Modified: sling/trunk/bundles/extensions/groovy/src/main/java/org/apache/sling/extensions/groovy/scripting/internal/GSPScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/groovy/src/main/java/org/apache/sling/extensions/groovy/scripting/internal/GSPScriptEngineFactory.java?rev=1166698&r1=1166697&r2=1166698&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/groovy/src/main/java/org/apache/sling/extensions/groovy/scripting/internal/GSPScriptEngineFactory.java
(original)
+++ sling/trunk/bundles/extensions/groovy/src/main/java/org/apache/sling/extensions/groovy/scripting/internal/GSPScriptEngineFactory.java
Thu Sep  8 14:07:17 2011
@@ -22,6 +22,8 @@ import java.util.List;
 import javax.script.ScriptEngine;
 
 import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Properties;
+import org.apache.felix.scr.annotations.Property;
 import org.apache.felix.scr.annotations.Reference;
 import org.apache.felix.scr.annotations.Service;
 import org.apache.sling.commons.classloader.DynamicClassLoaderManager;
@@ -32,8 +34,16 @@ import org.apache.sling.scripting.api.Ab
  */
 @Component
 @Service
+@Properties({
+    @Property(name="service.vendor", value="The Apache Software Foundation"),
+    @Property(name="service.description", value="GSP Script Engine")
+})
 public class GSPScriptEngineFactory extends AbstractScriptEngineFactory {
     
+    public GSPScriptEngineFactory() {
+        setNames("gsp", "GSP");
+    }
+
     @Reference
     private DynamicClassLoaderManager dynamicClassLoaderManager;
 



Mime
View raw message