Package org.jboss.aop

Examples of org.jboss.aop.Domain$DomainClassifiedBindingAndPointcutCollection


   public synchronized Domain getDomain(ClassLoader classLoader, AspectManager parent)
   {
      ClassLoader scopedClassLoader = delegate.ifScopedDeploymentGetScopedParentUclForCL(classLoader);
      if (scopedClassLoader != null)
      {
         Domain scopedManager = null;
         synchronized (AOPClassPoolRepository.getInstance().getRegisteredCLs())
         {
            Object loaderRepository = delegate.getLoaderRepository(classLoader);
            scopedManager = scopedClassLoaderDomains.get(loaderRepository);
           
            // FIXME: JBAOP-107 REMOVE THIS HACK
            if (scopedManager != null && scopedManager.isValid() == false)
            {
               scopedClassLoaderDomains.remove(loaderRepository);
               scopedManager = null;
            }
           
            if (scopedManager == null)
            {
               scopedManager = delegate.getScopedClassLoaderDomain(scopedClassLoader, parent);
               log.debug("Created domain " + scopedManager + " for scoped deployment on: " +
                        classLoader + "; identifying scoped ucl: " + scopedClassLoader);
               scopedManager.setInheritsBindings(true);
               scopedManager.setInheritsDeclarations(true);
              
               scopedClassLoaderDomains.put(loaderRepository, scopedManager);
            }
            return scopedManager;
         }
View Full Code Here


      return manager;
   }
  
   private static AspectManager createNewDomain(AspectManager parent, String name)
   {
      Domain domain = new Domain(parent, name, true);
      domain.setInheritsBindings(true);
      domain.setInheritsDeclarations(true);
      return domain;
   }
View Full Code Here

   {
      DomainDefinition domainDefinition = AspectManager.instance().getContainer(domainName);
      if(domainDefinition == null)
         throw new IllegalArgumentException("Domain definition '" + domainName + "' can not be found");
     
      final Domain domain = (Domain) domainDefinition.getManager();
      return domain;
   }
View Full Code Here

      catch(ClassCastException e)
      {
         throw new RuntimeException("Wrong policy configured " + policy);
      }
     
      Domain domain = initializeDomain(policy, unit);
      if (domain != null)
      {
         return domain;
      }
     
View Full Code Here

   }
  
   public Domain getDomain(ClassLoader classLoader, AspectManager parent)
   {
      //Check the stored domains
      Domain domain = registry.getRegisteredDomain(classLoader);
      if (domain != null)
      {
         return domain;
      }
     
View Full Code Here

TOP

Related Classes of org.jboss.aop.Domain$DomainClassifiedBindingAndPointcutCollection

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.