@Test public void testProxying() throws Throwable { Simple_MyServiceInterface_Impl simple_MyServiceInterface_Impl = (Simple_MyServiceInterface_Impl) processor.postProcessAfterInitialization(beanFactory.getBean("simple_MyServiceInterface_Impl"), "simple_MyServiceInterface_Impl"); Assert.assertTrue(AopUtils.isCglibProxy(simple_MyServiceInterface_Impl)); }
@Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (metaData.isInterceptedBean(beanName)) { return createProxyForBean(beanName, bean); } else { return bean; } }
InterceptorAwareBeanPostProcessor implements BeanPostProcessor { @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (metaData.isInterceptedBean(beanName)) { return createProxyForBean(beanName, bean); } else { return bean; } } }
InterceptorAwareBeanPostProcessor implements BeanPostProcessor { @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (metaData.isInterceptedBean(beanName)) { return createProxyForBean(beanName, bean); } else { return bean; } } InterceptorAwareBeanPostProcessor();  InterceptorAwareBeanPostProcessor(InterceptorMetaDataBean metaData, ConfigurableListableBeanFactory beanFactory); }
InterceptorAwareBeanPostProcessor implements BeanPostProcessor { @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (metaData.isInterceptedBean(beanName)) { return createProxyForBean(beanName, bean); } else { return bean; } } InterceptorAwareBeanPostProcessor();  InterceptorAwareBeanPostProcessor(InterceptorMetaDataBean metaData, ConfigurableListableBeanFactory beanFactory); @Override Object postProcessAfterInitialization(Object bean, String beanName); @Override Object postProcessBeforeInitialization(Object bean, String beanName); }
InterceptorAwareBeanPostProcessor implements BeanPostProcessor { @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (metaData.isInterceptedBean(beanName)) { return createProxyForBean(beanName, bean); } else { return bean; } } InterceptorAwareBeanPostProcessor();  InterceptorAwareBeanPostProcessor(InterceptorMetaDataBean metaData, ConfigurableListableBeanFactory beanFactory); @Override Object postProcessAfterInitialization(Object bean, String beanName); @Override Object postProcessBeforeInitialization(Object bean, String beanName);  }