incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r744921 - /incubator/sling/trunk/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
Date Mon, 16 Feb 2009 14:17:54 GMT
Author: cziegeler
Date: Mon Feb 16 14:17:44 2009
New Revision: 744921

URL: http://svn.apache.org/viewvc?rev=744921&view=rev
Log:
SLING-858 - Let the SCR plugin create correct bind/unbind implementations for us.

Modified:
    incubator/sling/trunk/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java

Modified: incubator/sling/trunk/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java?rev=744921&r1=744920&r2=744921&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
(original)
+++ incubator/sling/trunk/jcr/classloader/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
Mon Feb 16 14:17:44 2009
@@ -118,6 +118,7 @@
     //---------- SCR Integration ----------------------------------------------
 
     protected void activate(ComponentContext componentContext) {
+        @SuppressWarnings("unchecked")
         Dictionary properties = componentContext.getProperties();
 
         Object prop = properties.get(CLASS_PATH_PROP);
@@ -136,6 +137,7 @@
         this.parent = new BundleProxyClassLoader(owner, null);
     }
 
+    @SuppressWarnings("unchecked")
     protected void deactivate(ComponentContext componentContext) {
         for (Iterator ci=this.loaders.values().iterator(); ci.hasNext(); ) {
             RepositoryClassLoaderFacade cl = (RepositoryClassLoaderFacade) ci.next();
@@ -146,14 +148,6 @@
         this.parent = null;
     }
 
-    protected void bindRepository(SlingRepository repository) {
-        this.repository = repository;
-    }
-
-    protected void unbindRepository(SlingRepository repository) {
-        this.repository = null;
-    }
-
     //---------- internal -----------------------------------------------------
 
     private String getClassLoaderOwner(String userId) {



Mime
View raw message