ProxyFactory proxyFactory = new ProxyFactory();
proxyFactory.setProxyTargetClass(true);
proxyFactory.setTargetSource(new ApplicationTargetSource(application));
NameMatchMethodPointcutAdvisor advisor = new NameMatchMethodPointcutAdvisor();
advisor.addMethodName("createValidator");
advisor.setAdvice(new ComponentInterceptor());
proxyFactory.addAdvisor(advisor);
advisor = new NameMatchMethodPointcutAdvisor();
advisor.addMethodName("toString");
advisor.setAdvice(new ToStringInterceptor());
proxyFactory.addAdvisor(advisor);
proxyFactory.setFrozen(true);
ClassLoader classLoader = getClass().getClassLoader();