Examples of ClassLoaderDomain


Examples of org.jboss.classloader.spi.ClassLoaderDomain

   {
      ClassLoader cl = getClassLoader();
      if (cl == null)
         return false;
   
      ClassLoaderDomain domain = getClassLoaderDomain();
      if (domain == null)
         return false;
     
      if (domain.hasClassLoaders())
      {
         return true;
      }
     
      return false;
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

      aspect = super.getSuperPerVmAspect(def);
      if (aspect != null)
      {
         Class<?> superAspectClass = aspect.getClass();
         ClassLoaderDomain loadingDomain = getAspectRepository(superAspectClass);

         ClassLoaderDomain myDomain = getClassLoaderDomain();
        
         if (loadingDomain == myDomain)
         {
            //The parent does not load this class
            myPerVMAspects.put(def, aspect);
         }
         else
         {
            //The class has been loaded by a parent domain, find out if we also have a copy
            Class<?> myAspectClazz = myDomain.loadClass(aspect.getClass().getName());
           
            if (myAspectClazz == superAspectClass)
            {
               notMyPerVMAspects.put(def, Boolean.TRUE);
            }
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

  
  
   private ClassLoaderDomain getAspectRepository(Class<?> clazz)
   {
      ClassLoader cl = clazz.getClassLoader();
      ClassLoaderDomain domain = registry.getClassLoaderDomainForLoader(cl);
      return domain;
   }
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

   {
      if (!module.getDeterminedDomainName().equals(ClassLoaderSystem.DEFAULT_DOMAIN_NAME))
      {
         ClassLoaderSystem system = registry.getSystem();
         String domainName = module.getDeterminedDomainName();
         ClassLoaderDomain domain = system.getDomain(domainName);
  
         boolean parentDelegation = module.isJ2seClassLoadingCompliance();
         String name = String.valueOf(System.identityHashCode(loader));
        
         ScopedVFSClassLoaderDomain parentDomain = unit.isTopLevel() ? null : getDomain(registry, unit.getParent());
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

         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

Examples of org.jboss.classloader.spi.ClassLoaderDomain

      logger.debug("Created new ScopedJBoss5ClasPool for " + cl + ", with parent: " + src + ", parentDomain: " + parentDomainPool + ", parentFirst: " + parentFirst);
   }

   private URL getResourceUrlForClass(String resourcename)
   {
      ClassLoaderDomain domain = domainRef.get();
      return domain.getResource(resourcename);
   }
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

      if (myURL == null)
      {
         return false;
      }
     
      ClassLoaderDomain domain = domainRef.get();
      Loader parent = domain.getParent();
      URL parentURL = parent.getResource(resourceName);
     
      if (parentURL == null)
      {
         return true;
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

         throw new IllegalArgumentException("initMapsForLoader() should only be called if parentUnitLoader is different from loader");
      }
      ClassLoaderSystem system = getSystem();
     
      String domainName = module.getDeterminedDomainName();
      ClassLoaderDomain clDomain = system.getDomain(domainName);
      boolean ret = false;
      if (!classLoaderDomainsByLoader.containsKey(loader))
      {
         Integer count = classLoaderDomainReferenceCounts.get(clDomain);
         int cnt = count == null ? 0 : count.intValue();
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

   }
  
   public synchronized void cleanupLoader(ClassLoader loader)
   {
      WeakReference<ClassLoaderDomain> clDomainRef = classLoaderDomainsByLoader.remove(loader);
      ClassLoaderDomain clDomain = clDomainRef == null ? null : clDomainRef.get();
      if (clDomain != null)
      {
         Integer count =  classLoaderDomainReferenceCounts.get(clDomain);
         int cnt = count == null ? 0 : count.intValue();
         if (cnt > 0)
View Full Code Here

Examples of org.jboss.classloader.spi.ClassLoaderDomain

      }
   }

   public synchronized Domain getRegisteredDomain(ClassLoader cl)
   {
      ClassLoaderDomain clDomain = getClassLoaderDomainForLoader(cl);
      if (clDomain != null)
      {
         return aopDomainsByClassLoaderDomain.get(clDomain);
      }
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.