Package org.jboss.classpool.scoped

Examples of org.jboss.classpool.scoped.ScopedClassPool


         if (currentClassLoaders.putIfAbsent(classLoader, Boolean.TRUE) != null)
         {
            return null;
         }

         ScopedClassPool classPool = (ScopedClassPool) ClassPoolRepository.super.registerClassLoader(classLoader);
         currentClassLoaders.remove(classLoader);
         return classPool;
      }
View Full Code Here


      Collections.synchronizedMap(new WeakHashMap<Module, ScopedClassPool>());
  
   @Override
   public ClassPool registerClassLoader(ClassLoader classLoader)
   {
      ScopedClassPool classPool = (ScopedClassPool) super.registerClassLoader(classLoader);
      if (classPool == null)
      {
         // TODO check this works; was delegate before
         super.unregisterClassLoader(classLoader);
      }
View Full Code Here

   }
  

   public void unregisterClassLoader(ClassLoader classLoader, Module module)
   {
      ScopedClassPool classPool = registeredModules.remove(module);
      if (classLoader == null)
      {
         if (classPool == null)
         {
            //throw new IllegalStateException("Module " + module + " is not registered");
            //TODO JBREFLECT-116
           if (log.isDebugEnabled())
              log.warn("Module " + module + " is not registered");
           return;
         }
         classPool.close();
      }
      else
      {
         unregisterClassLoader(classLoader);
      }
View Full Code Here

      if (currentClassLoaders.putIfAbsent(classLoader, Boolean.TRUE) != null)
      {
         return null;
      }

      ScopedClassPool classPool = (ScopedClassPool) super.registerClassLoader(classLoader);
      currentClassLoaders.remove(classLoader);
     
      // TODO review classPool != null check for AOP tests
      if (callbacks != null && callbacks.size() > 0)
      {
View Full Code Here

  
  
  
   public ClassPool registerClassLoader(ClassLoader classLoader)
   {
      ScopedClassPool classPool = (ScopedClassPool) successor.registerClassLoader(classLoader);
      if (classPool == null)
      {
         // TODO check this works; was delegate before
         successor.unregisterClassLoader(classLoader);
      }
View Full Code Here

   }
  

   public void unregisterClassLoader(ClassLoader classLoader, Module module)
   {
      ScopedClassPool classPool = registeredModules.remove(module);
      if (classLoader == null)
      {
         if (classPool == null)
         {
            //throw new IllegalStateException("Module " + module + " is not registered");
            //TODO JBREFLECT-116
           if (log.isDebugEnabled())
              log.warn("Module " + module + " is not registered");
           return;
         }
         classPool.close();
      }
      else
      {
         unregisterClassLoader(classLoader);
      }
View Full Code Here

               return false;
            }
         }
         else
         {
            ScopedClassPool pool = (ScopedClassPool) getRegisteredClassPool(advisor.getClassLoader());
            if (pool == null) return false;
            if (pool.isUnloadedClassLoader())
            {
               unregisterClassLoader(advisor.getClassLoader());
               return false;
            }
            else
View Full Code Here

      Collections.synchronizedMap(new WeakHashMap<Module, ScopedClassPool>());
  
   @Override
   public ClassPool registerClassLoader(ClassLoader classLoader)
   {
      ScopedClassPool classPool = (ScopedClassPool) super.registerClassLoader(classLoader);
      if (classPool == null)
      {
         // TODO check this works; was delegate before
         super.unregisterClassLoader(classLoader);
      }
View Full Code Here

   }
  

   public void unregisterClassLoader(ClassLoader classLoader, Module module)
   {
      ScopedClassPool classPool = registeredModules.remove(module);
      if (classLoader == null)
      {
         if (classPool == null)
         {
            throw new IllegalStateException("Module " + module + " is not registered");
         }
         classPool.close();
      }
      else
      {
         unregisterClassLoader(classLoader);
      }
View Full Code Here

               return false;
            }
         }
         else
         {
            ScopedClassPool pool = (ScopedClassPool) getRegisteredClassPool(advisor.getClassLoader());
            if (pool == null) return false;
            if (pool.isUnloadedClassLoader())
            {
               unregisterClassLoader(advisor.getClassLoader());
               return false;
            }
            else
View Full Code Here

TOP

Related Classes of org.jboss.classpool.scoped.ScopedClassPool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.