Code example for ProxyFactory

Methods: getProxy, addAdvisor, setProxyTargetClass, setTarget

0
        interceptor.setObjectDefinitionSource(source);
        interceptor.afterPropertiesSet();
        MessageInterceptionAdvice advice = new MessageInterceptionAdvice();
        advice.getMessageInterceptors().add(interceptor);
 
        ProxyFactory factory = new ProxyFactory();
        factory.setProxyTargetClass(true);
        factory.addAdvisor(new EndpointServiceMessagePointcutAdvisor(advice));
        factory.setTarget(this.endpoint);
        this.advisedEndpoint = (AbstractEndpoint) factory.getProxy();
         
        this.request = new MockHttpServletRequest();
        FlexContext.setThreadLocalHttpRequest(this.request);
    } 
 
    @After 
    public void tearDown() { 
        SecurityContextHolder.getContext().setAuthentication(null); 
        FlexContext.clearThreadLocalObjects(); 
    } 
Connect your IDE to all the code out there  Get Codota for Java