incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r591047 - /incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScriptEngine.java
Date Thu, 01 Nov 2007 15:19:35 GMT
Author: fmeschbe
Date: Thu Nov  1 08:19:34 2007
New Revision: 591047

URL: http://svn.apache.org/viewvc?rev=591047&view=rev
Log:
SLING-28 Add resource global variable name (again)

Modified:
    incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScriptEngine.java

Modified: incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScriptEngine.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScriptEngine.java?rev=591047&r1=591046&r2=591047&view=diff
==============================================================================
--- incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScriptEngine.java
(original)
+++ incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScriptEngine.java
Thu Nov  1 08:19:34 2007
@@ -48,6 +48,15 @@
 
     /**
      * The name of the global scripting variable providing the
+     * {@link org.apache.sling.api.resource.Resource} object (value is
+     * "resource"). The value of the scripting variable is the same as that
+     * returned by the <code>SlingScriptHelper.getRequest().getResource()</code>
+     * method.
+     */
+    static final String RESOURCE = "resource";
+
+    /**
+     * The name of the global scripting variable providing the
      * {@link org.apache.sling.api.SlingHttpServletRequest} object (value is
      * "request"). The value of the scripting variable is the same as that
      * returned by the {@link SlingScriptHelper#getRequest()} method.



Mime
View raw message