Code example for ProxyFactory

0
 
public class HelloServiceProxyFactory implements FactoryBean<Object> { 
     
    public Object getObject() throws Exception { 
 
        return new ProxyFactory(HelloService.class, new HelloServiceInterceptor()).getProxy(); 
    } 
     
    public Class<?> getObjectType() { 
 
        return HelloServiceInterceptor.class; 
    } 
     
    public boolean isSingleton() { 
 
        return true; 
    } 
     
} 
Experience pair programming with AI  Get Codota for Java