You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:46:13 UTC

[sling-org-apache-sling-jcr-classloader] 15/21: SLING-858 - Let the SCR plugin create correct bind/unbind implementations for us.

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.4-incubator
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 022db7d91d8a5fe16dc04eec0a66267c1ed01811
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Feb 16 14:17:44 2009 +0000

    SLING-858 - Let the SCR plugin create correct bind/unbind implementations for us.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/jcr/classloader@744921 13f79535-47bb-0310-9956-ffa450edef68
---
 .../internal/RepositoryClassLoaderProviderImpl.java            | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
index ed7506b..690265a 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
@@ -118,6 +118,7 @@ public class RepositoryClassLoaderProviderImpl
     //---------- SCR Integration ----------------------------------------------
 
     protected void activate(ComponentContext componentContext) {
+        @SuppressWarnings("unchecked")
         Dictionary properties = componentContext.getProperties();
 
         Object prop = properties.get(CLASS_PATH_PROP);
@@ -136,6 +137,7 @@ public class RepositoryClassLoaderProviderImpl
         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 @@ public class RepositoryClassLoaderProviderImpl
         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) {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.