Package org.jboss.aop

Examples of org.jboss.aop.AspectManager


    * @return
    */
   private Interceptor[] getLocalClientInterceptors(EJBContainer container)
   {
      // Obtain interceptors by stack name via Aspect Manager
      AspectManager manager = AspectManager.instance();
      AdviceStack stack = manager.getAdviceStack(LOCAL_CLIENT_INTERCEPTOR_STACK_NAME);

      if (stack == null)
      {
         throw new RuntimeException("Could not find Advice Stack with name: " + LOCAL_CLIENT_INTERCEPTOR_STACK_NAME);
      }
View Full Code Here


  
         boolean parentDelegation = module.isJ2seClassLoadingCompliance();
         String name = String.valueOf(System.identityHashCode(loader));
        
         ScopedVFSClassLoaderDomain parentDomain = unit.isTopLevel() ? null : getDomain(registry, unit.getParent());
         AspectManager parent = parentDomain != null ? parentDomain : AspectManager.getTopLevelAspectManager();

         return new ScopedVFSClassLoaderDomain(loader, name, parentDelegation, parent, false, domain, registry);
      }
      return null;
   }
View Full Code Here

         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();
      Interceptor[] interceptors = stack.createInterceptors(advisor, null);
      return interceptors;
   }
View Full Code Here

    * @return
    */
   private Interceptor[] getRemoteClientInterceptors(EJBContainer container)
   {
      // Obtain interceptors by stack name via Aspect Manager
      AspectManager manager = AspectManager.instance();
      AdviceStack stack = manager.getAdviceStack(REMOTE_CLIENT_INTERCEPTOR_STACK_NAME);

      if (stack == null)
      {
         throw new RuntimeException("Could not find Advice Stack with name: " + REMOTE_CLIENT_INTERCEPTOR_STACK_NAME);
      }
View Full Code Here

    * @return
    */
   private Interceptor[] getLocalClientInterceptors(EJBContainer container)
   {
      // Obtain interceptors by stack name via Aspect Manager
      AspectManager manager = AspectManager.instance();
      AdviceStack stack = manager.getAdviceStack(LOCAL_CLIENT_INTERCEPTOR_STACK_NAME);

      if (stack == null)
      {
         throw new RuntimeException("Could not find Advice Stack with name: " + LOCAL_CLIENT_INTERCEPTOR_STACK_NAME);
      }
View Full Code Here

      AopMetaDataDeployerOutput output = new AopMetaDataDeployerOutput();
      unit.addAttachment(AopMetaDataDeployerOutput.class, output);
     
      if (extractAopBeanMetaDataFactories(unit, deployment, output))
      {
         AspectManager correctManager = unit.getAttachment(AspectManager.class);
         log.debug("Got AspectManager attachment " + correctManager + " for " + unit);
         if (correctManager != aspectManager)
         {
            int sequence = getSequence();
            String scopedManagerName = registerScopedManagerBean(sequence, unit, correctManager, output);
View Full Code Here

         {
            log.info("AOP deployment is scoped using classloader " + scl);
         }

         Thread.currentThread().setContextClassLoader(di.ucl);
         AspectManager manager = (scl != null) ? AspectManager.instance(scl) : AspectManager.instance();
         if (!di.isXML)
         {
            Iterator it = ArchiveBrowser.getBrowser(di.localUrl, new ClassFileFilter());
            AspectAnnotationLoader loader = new AspectAnnotationLoader(manager);
            loader.setClassLoader(scl);
View Full Code Here

/* 41 */     return getAspectManager(MetaDataStack.peek());
/*    */   }
/*    */
/*    */   public static AspectManager getAspectManager(MetaData md)
/*    */   {
/* 46 */     AspectManager manager = AspectManager.instance();
/* 47 */     if (md != null)
/*    */     {
/* 49 */       ApplicationScope app = (ApplicationScope)md.getMetaData(ApplicationScope.class);
/* 50 */       DeploymentScope dep = (DeploymentScope)md.getMetaData(DeploymentScope.class);
/* 51 */       if ((app != null) && (dep != null))
/*    */       {
/* 53 */         JBossStringBuilder fqn = new JBossStringBuilder("/");
/* 54 */         AspectManager sub = null;
/* 55 */         if (app != null)
/*    */         {
/* 57 */           String name = "APPLICATION=" + app.value();
/* 58 */           fqn.append(name);
/* 59 */           fqn.append("/");
/* 60 */           sub = manager.findManagerByName(fqn.toString());
/* 61 */           if (sub == null)
/*    */           {
/* 63 */             sub = createNewDomain(manager, name);
/*    */           }
/*    */         }
/*    */
/* 67 */         if (dep != null)
/*    */         {
/* 69 */           String name = "DEPLOYMENT=" + dep.value();
/* 70 */           fqn.append(name);
/* 71 */           fqn.append("/");
/* 72 */           AspectManager parent = sub;
/* 73 */           sub = manager.findManagerByName(fqn.toString());
/* 74 */           if (sub == null)
/*    */           {
/* 76 */             sub = createNewDomain(parent, name);
/*    */           }
View Full Code Here

/* 104 */     return this.definition.getManager();
/*     */   }
/*     */
/*     */   public void start()
/*     */   {
/* 109 */     AspectManager parent = this.manager;
/* 110 */     if (this.extendz != null)
/*     */     {
/* 112 */       DomainDefinition parentDef = this.manager.getContainer(this.extendz);
/* 113 */       if (parentDef == null)
/*     */       {
View Full Code Here

/*     */   private static final String DEPENDENCY_NAME_ATTRIBUTE = "name";
/*  76 */   private static final IntrospectionAnnotationHelper helper = new IntrospectionAnnotationHelper();
/*     */
/*     */   public List<DependencyBuilderListItem> getDependencies(ClassAdapter classAdapter, MetaData metaData)
/*     */   {
/*  80 */     AspectManager manager = AspectManagerFactory.getAspectManager(metaData);
/*     */     try
/*     */     {
/*  83 */       ClassInfo classInfo = classAdapter.getClassInfo();
/*  84 */       String className = classInfo.getName();
/*  85 */       if (className != null)
View Full Code Here

TOP

Related Classes of org.jboss.aop.AspectManager

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.