Author: cziegeler
Date: Mon Oct 17 12:27:25 2016
New Revision: 1765256

URL: http://svn.apache.org/viewvc?rev=1765256&view=rev
Log:
SLING-5784 : Use service property to identify the ServletContext registered by 
Sling

Modified:
    
sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java

Modified: 
sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java?rev=1765256&r1=1765255&r2=1765256&view=diff
==============================================================================
--- 
sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
 (original)
+++ 
sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
 Mon Oct 17 12:27:25 2016
@@ -112,7 +112,7 @@ public class JspScriptEngineFactory
     /** Default logger */
     private final Logger logger = 
LoggerFactory.getLogger(JspScriptEngineFactory.class);
 
-    @Reference(unbind="unbindSlingServletContext")
+    @Reference(unbind="unbindSlingServletContext", 
target="(name=org.apache.sling)")
     private ServletContext slingServletContext;
 
     @Reference


Reply via email to