incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r591264 - /incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScript.java
Date Fri, 02 Nov 2007 08:48:54 GMT
Author: fmeschbe
Date: Fri Nov  2 01:48:54 2007
New Revision: 591264

URL: http://svn.apache.org/viewvc?rev=591264&view=rev
Log:
SLING-28 Provide the script resource instead of just the Script path.
(see also http://mail-archives.apache.org/mod_mbox/incubator-sling-dev/200711.mbox/%3c1193990765.12650.11.camel@bslm-046.corp.day.com%3e)

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

Modified: incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScript.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScript.java?rev=591264&r1=591263&r2=591264&view=diff
==============================================================================
--- incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScript.java
(original)
+++ incubator/sling/trunk/sling-api/src/main/java/org/apache/sling/api/scripting/SlingScript.java
Fri Nov  2 01:48:54 2007
@@ -21,6 +21,8 @@
 import java.io.IOException;
 import java.io.Reader;
 
+import org.apache.sling.api.resource.Resource;
+
 /**
  * The <code>SlingScript</code> defines the API for objects which encapsulate
  * a script resolved by the {@link SlingScriptResolver}. To have a script
@@ -36,9 +38,9 @@
 public interface SlingScript {
 
     /**
-     * Returns the (path) name of this script.
+     * Returns the Resource providing the script source code.
      */
-    String getScriptPath();
+    Resource getScriptResource();
 
     /**
      * Returns the {@link SlingScriptEngine} used to evaluate this script.



Mime
View raw message