Package org.jboss.classloading.spi.dependency

Examples of org.jboss.classloading.spi.dependency.Module


      if (pool instanceof JBossClDelegatingClassPool == false)
      {
         throw new IllegalStateException("Not an instance of JBossClDelegatingClassPool: " + pool.getClass().getName());
      }
     
      Module module = getModuleForPool(pool);
      boolean trace = logger.isTraceEnabled();
     
      lockWrite();
      try
      {
         for (String pkg : module.getPackageNames())
         {
            Set<DelegatingClassPool> pools = poolsByPackage.get(pkg);
            if (pools == null)
            {
               pools = new LinkedHashSet<DelegatingClassPool>();
View Full Code Here


      {
         ClassPool parent = getCreateParentClassPools(cl, src, repository);
        
         if (cl instanceof RealClassLoader)
         {
            Module module = registry.getModule(cl);
            if (module == null)
            {
               module = getModuleForClassLoader(cl);
            }
            registerModuleCallback.registerModule(module);
View Full Code Here

      {
         delegate.unregisterClassLoader(classLoader);
      }
      else
      {
         Module module = getModuleForClassLoader(classLoader);
         this.registeredModules.put(module, classPool);
      }
      return classPool;
   }
View Full Code Here

      if (pool instanceof JBossClDelegatingClassPool == false)
      {
         throw new IllegalStateException("Not an instance of JBossClDelegatingClassPool: " + pool.getClass().getName());
      }
     
      Module module = getModuleForPool(pool);
      boolean trace = logger.isTraceEnabled();
     
      lockWrite();
      try
      {
         for (String pkg : module.getPackageNames())
         {
            Set<DelegatingClassPool> pools = poolsByPackage.get(pkg);
            if (pools == null)
            {
               pools = new LinkedHashSet<DelegatingClassPool>();
View Full Code Here

   @Override
   public void removeClassPool(DelegatingClassPool pool)
   {
      super.removeClassPool(pool);
  
      Module module = getModuleForPool(pool);
      boolean trace = logger.isTraceEnabled();

      lockWrite();
      try
      {
         for (String pkg : module.getPackageNames())
         {
            Set<DelegatingClassPool> pools = poolsByPackage.get(pkg);
            if (pools != null)
            {
               pools.remove(pool);
View Full Code Here

      {
         if (trace) logger.trace(this + " isPrimitive " + classname);
      }
      else
      {
         Module module = getModuleForPool(initiatingPool);
         if (module != null && module.isImportAll())
         {
            //Use the old "big ball of mud" model
            if (trace) logger.trace(this + " isImportAll");
            return super.getCachedOrCreate(initiatingPool, classname, resourceName, create, trace);
         }
View Full Code Here

   {
      if (pool == null)
      {
         return null;
      }
      Module module = ((JBossClDelegatingClassPool)pool).getModule();
      if (logger.isTraceEnabled()) logger.trace(this + " got module " + module + " for " + pool);
      return module;
   }
View Full Code Here

      }
   }

   private CtClass getCtClassFromModule(final Module module, final String classname, boolean trace)
   {
      Module found = null;
      try
      {
         found = AccessController.doPrivileged(new PrivilegedExceptionAction<Module>()
         {
        
View Full Code Here

      AbstractClassPool pool = null;
     
      if (cl instanceof RealClassLoader)
      {
         Module module = registry.getModule(cl);
         if (module != null && module.getDeterminedParentDomainName() != null)
         {
            //It is scoped
            ClassLoaderSystem sys = registry.getSystem();
            ClassLoaderDomain domain = sys.getDomain(module.getDeterminedDomainName());
            boolean parentFirst = module.isJ2seClassLoadingCompliance();
            ClassPool parentDomainPool = getParentUnitClassPool(cl);
            pool = new ScopedJBoss5ClassPool(cl, parent, parentDomainPool, repository, getTempURL(module), parentFirst, domain);
         }
         else
         {
View Full Code Here

      unit.getMutableMetaData().addAnnotation(output.getScopeAnnotation());
   }
  
   private String getDomainName(VFSDeploymentUnit unit)
   {
      Module module = unit.getTopLevel().getAttachment(Module.class);
      if (module != null && !module.getDeterminedDomainName().equals(ClassLoaderSystem.DEFAULT_DOMAIN_NAME))
      {
         return module.getDeterminedDomainName();
      }
     
      return null;
   }
View Full Code Here

TOP

Related Classes of org.jboss.classloading.spi.dependency.Module

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.