Examples of addAdvisor()


Examples of org.jboss.aop.advice.AdviceBinding.addAdvisor()

         {
            this.adviceBindings.addAll(classAdvisor.adviceBindings);
            for (Iterator it = this.adviceBindings.iterator() ; it.hasNext() ; )
            {
               AdviceBinding binding = (AdviceBinding)it.next();
               binding.addAdvisor(this);
            }
         }
      }
      super.finalizeChains(newMethodInfos, newFieldReadInfos, newFieldWriteInfos, newConstructorInfos, newConstructionInfos);
   }
View Full Code Here

Examples of org.jboss.aop.introduction.InterfaceIntroduction.addAdvisor()

         while (it.hasNext())
         {
            InterfaceIntroduction pointcut = (InterfaceIntroduction) it.next();
            if (pointcut.matches(advisor, clazz))
            {
               pointcut.addAdvisor(advisor);
            }
         }
      }
   }
View Full Code Here

Examples of org.jboss.aop.metadata.ClassMetaDataBinding.addAdvisor()

         {
            ClassMetaDataBinding data = (ClassMetaDataBinding) it.next();
            if (data.matches(advisor, clazz))
            {
               attached = true;
               if (addAdvisor) data.addAdvisor(advisor);
               ClassMetaDataLoader loader = data.getLoader();
               loader.bind(advisor, data, clazz.getDeclaredMethods(), clazz.getDeclaredFields(), clazz.getDeclaredConstructors());
            }
         }
      }
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

   
    ProxyFactory proxyFactory = new ProxyFactory();

    if (this.preInterceptors != null) {
      for (int i = 0; i < this.preInterceptors.length; i++) {
        proxyFactory.addAdvisor(this.advisorAdapterRegistry.wrap(this.preInterceptors[i]));
      }
    }

    if (this.pointcut != null) {
      Advisor advice = new DefaultPointcutAdvisor(this.pointcut, this.resourceInterceptor);
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

      }
    }

    if (this.pointcut != null) {
      Advisor advice = new DefaultPointcutAdvisor(this.pointcut, this.resourceInterceptor);
      proxyFactory.addAdvisor(advice);
    }
    else {
      // rely on default pointcut
      proxyFactory.addAdvisor(new ResourceAdvisor(this.resourceInterceptor));
      // Could just do the following, but it's usually less efficient because of AOP advice chain caching.
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

      Advisor advice = new DefaultPointcutAdvisor(this.pointcut, this.resourceInterceptor);
      proxyFactory.addAdvisor(advice);
    }
    else {
      // rely on default pointcut
      proxyFactory.addAdvisor(new ResourceAdvisor(this.resourceInterceptor));
      // Could just do the following, but it's usually less efficient because of AOP advice chain caching.
      // proxyFactory.addInterceptor(transactionInterceptor);
    }

    if (this.postInterceptors != null) {
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

      // proxyFactory.addInterceptor(transactionInterceptor);
    }

    if (this.postInterceptors != null) {
      for (int i = 0; i < this.postInterceptors.length; i++) {
        proxyFactory.addAdvisor(this.advisorAdapterRegistry.wrap(this.postInterceptors[i]));
      }
    }

    proxyFactory.copyFrom(this);
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

    TouchingNameMatchMethodAdvisor advisor = new TouchingNameMatchMethodAdvisor();
    advisor.setMappedNames(mappedNames);
    advisor.getTouchingAdvice().setProperties(properties);
    advisor.getTouchingAdvice().setOgnl(ognl);
    ProxyFactory pf = new ProxyFactory(target);
    pf.addAdvisor(advisor);
    return pf.getProxy();
  }
 
 
 
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

     */
    public Object introduceInterfaces(Object target, Class[] introducedInterfaces) {
        ProxyFactory proxyFactory = new ProxyFactory();
       
        proxyFactory.setProxyTargetClass(true);
        proxyFactory.addAdvisor(new ImplementorIntroductorAdvisor(introducedInterfaces, this.implementor));
        proxyFactory.setTarget(target);
       
        return proxyFactory.getProxy();
    }
   
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.addAdvisor()

     * @see AbstractDynamicIntroductor#introduceInterfaces(Object , Class[] , Class[] )
     */
    public Object introduceInterfaces(Object target, Class[] introducedInterfaces, Class[] targetInterfaces) {
        ProxyFactory proxyFactory = new ProxyFactory();
       
        proxyFactory.addAdvisor(new ImplementorIntroductorAdvisor(introducedInterfaces, this.implementor));
        proxyFactory.setTarget(target);
        proxyFactory.setInterfaces(this.merge(introducedInterfaces, targetInterfaces));
       
        return proxyFactory.getProxy();
    }
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.