incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1209338 - /sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java
Date Fri, 02 Dec 2011 02:53:15 GMT
Author: justin
Date: Fri Dec  2 02:53:14 2011
New Revision: 1209338

URL: http://svn.apache.org/viewvc?rev=1209338&view=rev
Log:
SLING-2295 - adding adapter.condition service property for script adapter factory

Modified:
    sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java

Modified: sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java?rev=1209338&r1=1209337&r2=1209338&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java
(original)
+++ sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java
Fri Dec  2 02:53:14 2011
@@ -60,7 +60,8 @@ import org.slf4j.LoggerFactory;
     @Property(name="service.description", value="Default SlingScriptResolver"),
     @Property(name="adaptables", value="org.apache.sling.api.resource.Resource"),
     @Property(name="adapters", value={"org.apache.sling.api.scripting.SlingScript",
-                                      "javax.servlet.Servlet"})
+                                      "javax.servlet.Servlet"}),
+    @Property(name="adapter.condition", value="If the resource's path ends in an extension
registered by a script engine.")
 })
 public class SlingScriptAdapterFactory implements AdapterFactory, MimeTypeProvider {
 



Mime
View raw message