Author: cziegeler
Date: Tue May 29 07:29:24 2012
New Revision: 1343575

URL: http://svn.apache.org/viewvc?rev=1343575&view=rev
Log:
SLING-2396 : Add new resource provider interfaces (WiP)

Modified:
    
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
    
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java

Modified: 
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
URL: 
http://svn.apache.org/viewvc/sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java?rev=1343575&r1=1343574&r2=1343575&view=diff
==============================================================================
--- 
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
 (original)
+++ 
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
 Tue May 29 07:29:24 2012
@@ -57,7 +57,7 @@ import org.slf4j.LoggerFactory;
  * events and creates resource events which are sent through the
  * OSGi event admin.
  */
-@Component
+@Component(immediate = true)
 @Properties({
     @Property(name = Constants.SERVICE_DESCRIPTION, value = "Apache Sling 
JcrResourceListener"),
     @Property(name = Constants.SERVICE_VENDOR, value = "The Apache Software 
Foundation")

Modified: 
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
URL: 
http://svn.apache.org/viewvc/sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java?rev=1343575&r1=1343574&r2=1343575&view=diff
==============================================================================
--- 
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
 (original)
+++ 
sling/whiteboard/SLING-2396/jcr.resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
 Tue May 29 07:29:24 2012
@@ -25,6 +25,7 @@ import javax.jcr.Session;
 
 import org.apache.felix.scr.annotations.Activate;
 import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.ConfigurationPolicy;
 import org.apache.felix.scr.annotations.Properties;
 import org.apache.felix.scr.annotations.Property;
 import org.apache.felix.scr.annotations.Reference;
@@ -48,7 +49,7 @@ import org.osgi.service.component.Compon
  * <li><code>JcrResourceResolverFactory</code> service
  * </ul>
  */
-@Component
+@Component(policy=ConfigurationPolicy.IGNORE)
 @Service(value = JcrResourceResolverFactory.class)
 @Properties({
         @Property(name = Constants.SERVICE_DESCRIPTION, value = "Apache Sling 
JcrResourceResolverFactory Implementation"),


Reply via email to