Examples of AspectManager


Examples of org.jboss.aop.AspectManager

         return new Interceptor[]
         {};
      }

      // Obtain interceptors by stack name via Aspect Manager
      AspectManager manager = AspectManager.instance();
      AdviceStack stack = manager.getAdviceStack(stackName);
      assert stack != null : "Could not find Advice Stack with name: " + stackName;
      Advisor advisor = this.getAdvisor();
      final Interceptor[] interceptors = stack.createInterceptors(advisor, null);
      return interceptors;
   }
View Full Code Here

Examples of org.jboss.aop.AspectManager

      super(name);
   }

   public void testDeclare()
   {
      AspectManager am = (AspectManager)getBean("AspectManager");
      Iterator<DeclareDef> it = am.getDeclares();
      int declares = 0;
      boolean gotError = false;
      boolean gotWarning = false;
     
      while (it.hasNext())
View Full Code Here

Examples of org.jboss.aop.AspectManager

      return definition.getManager();
   }
  
   public void start()
   {
      AspectManager parent = manager;
      if (this.parent != null)
      {
         parent = this.parent.getDomain();
      }
        
View Full Code Here

Examples of org.jboss.aop.AspectManager

      if (bypassAOP(beanInfo, metaData, DisabledType.ALL))
      {
         return super.getDependencies(beanInfo, metaData);
      }
     
      AspectManager manager = AspectManagerFactory.getAspectManager(metaData);
      try
      {
         ClassInfo classInfo = beanInfo.getClassInfo();
         String className = classInfo.getName();
         if (className != null)
View Full Code Here

Examples of org.jboss.aop.AspectManager

      return getAspectManager(MetaDataStack.peek());
   }
  
   public static AspectManager getAspectManager(MetaData md)
   {
      AspectManager manager = AspectManager.instance();
      if (md != null)
      {
         AspectManager metaDataManager = md.getMetaData(AspectManager.class);
        
         if (metaDataManager != null)
         {
            return metaDataManager;
         }
           
        
         ApplicationScope app = md.getMetaData(ApplicationScope.class);
         DeploymentScope dep = md.getMetaData(DeploymentScope.class);
         if (app != null && dep != null)
         {
            JBossStringBuilder fqn = new JBossStringBuilder("/");
            AspectManager sub = null;
            if (app != null)
            {
               String name="APPLICATION=" + app.value();
               fqn.append(name);
               fqn.append("/");
               sub = manager.findManagerByName(fqn.toString());
               if (sub == null)
               {
                  sub = createNewDomain(manager, name);
               }
            }
           
            if (dep != null)
            {
               String name="DEPLOYMENT=" + dep.value();
               fqn.append(name);
               fqn.append("/");
               AspectManager parent = sub;
               sub = manager.findManagerByName(fqn.toString());
               if (sub == null)
               {
                  sub = createNewDomain(parent, name);
               }
View Full Code Here

Examples of org.jboss.aop.AspectManager

      {
         return super.dispatch();
      }
     
      Class<?> clazz = constructorInfo.getDeclaringClass().getType();
      AspectManager manager = AspectManagerFactory.getAspectManager(metaData);
      boolean hasInstanceMetaData = rootHasSubInstanceMetaData(metaData);
      ContainerCache cache = ContainerCache.initialise(manager, clazz, metaData, hasInstanceMetaData);
      AOPProxyFactoryParameters params = new AOPProxyFactoryParameters();
      Object target = createTarget(cache, params);
      params.setProxiedClass(target.getClass());
View Full Code Here

Examples of org.jboss.aop.AspectManager

      assertNotNull(TestAspectWithProperty.last);
      assertEquals("This is only a test", TestAspectWithProperty.last.getSomeProperty());
      assertTrue(TestInterceptor.invoked);
      assertTrue(TestAspect.invoked);

      AspectManager domain = getDomain("AOPDomain");
      checkArtifacts(domain, true);
   }
View Full Code Here

Examples of org.jboss.aop.AspectManager

      pojo.method();
      assertNull(TestAspectWithProperty.last);
      assertFalse(TestInterceptor.invoked);
      assertFalse(TestAspect.invoked);

      AspectManager manager = getMainAspectManager();
      checkArtifacts(manager, false);
   }
View Full Code Here

Examples of org.jboss.aop.AspectManager

      super(name);
   }
  
   protected AspectManager getMainAspectManager()
   {
      AspectManager manager = (AspectManager)getBean("AspectManager");
      assertNotNull(manager);
      return manager;
   }
View Full Code Here

Examples of org.jboss.aop.AspectManager

      return manager;
   }
  
   protected AspectManager getDomain(String name)
   {
      AspectManager manager = getMainAspectManager();
      DomainDefinition def = manager.getContainer(name);
      assertNotNull(def);
      AspectManager domain = def.getManager();
      assertNotNull(domain);
      return domain;
   }
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.