Code example for ProxyFactory

Methods: getProxy, addAdvisor, setProxyTargetClass, setTarget

0
     
    /** 
     * @see AbstractDynamicIntroductor#introduceInterfaces(Object , Class[] ) 
     */ 
    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();
    } 
     
    /** 
     * @see AbstractDynamicIntroductor#introduceInterfaces(Object , Class[] , Class[] ) 
     */ 
    public Object introduceInterfaces(Object target, Class[] introducedInterfaces, Class[] targetInterfaces) {
        ProxyFactory proxyFactory = new ProxyFactory();
         
Connect your IDE to all the code out there  Get Codota for Java