Package org.jboss.classpool.spi

Examples of org.jboss.classpool.spi.AbstractClassPool


      }
   }

   private static void registerGeneratedClass(ClassPool pool, String name)
   {
      AbstractClassPool classPool = getAbstractClassPool(pool);
      if (classPool != null)
      {
         classPool.registerGeneratedClass(name);
      }
   }
View Full Code Here


      }
   }
  
   private static void unregisterGeneratedClass(ClassPool pool, String name)
   {
      AbstractClassPool classPool = getAbstractClassPool(pool);
      if (classPool != null)
      {
         classPool.doneGeneratingClass(name);
      }
   }
View Full Code Here

            //It is scoped
            return new ScopedJBossClassPool(cl, parent, repository, tempdir, tmpCP);
         }
         return new JBossClassPool(cl, parent, repository, tempdir, tmpCP);
      }
      return new AbstractClassPool(cl, parent, repository);
   }
View Full Code Here

         //FIXME This needs revisiting/removing once the
         ArrayList<AbstractClassPool> noAnnotationURLClassLoaderPools = null;
         String resource = url.toString();
         for(ClassPool pool : classPoolRepository.getRegisteredCLs().values())
         {
            AbstractClassPool candidate = (AbstractClassPool)pool;
            if (candidate.isUnloadedClassLoader())
            {
               classPoolRepository.unregisterClassLoader(candidate.getClassLoader());
               continue;
            }
           
            if (candidate.getClassLoader() instanceof RepositoryClassLoader)
            {
               //Sometimes the ClassLoader is a proxy for MBeanProxyExt?!
               RepositoryClassLoader rcl = (RepositoryClassLoader)candidate.getClassLoader();
               URL[] urls = rcl.getClasspath();
              
               for (int i = 0 ; i < urls.length ; i++)
               {
                  if (resource.indexOf(urls[i].getFile()) >= 0)
                  {
                     return candidate;
                  }
               }
            }
            //FIXME Remove once we have the JBoss 5 version of pool
            else if (isInstanceOfNoAnnotationURLClassLoader(candidate.getClassLoader()))
            {
               if (noAnnotationURLClassLoaderPools == null)
               {
                  noAnnotationURLClassLoaderPools = new ArrayList<AbstractClassPool>();
               }
View Full Code Here

TOP

Related Classes of org.jboss.classpool.spi.AbstractClassPool

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.