@Test public void testCreatedMetaDataBean() { Assert.assertTrue(postProcessor.createAndRegisterMetaDataBean(beanFactory).getInterceptors().size()>0); Assert.assertTrue(beanFactory.containsBean("interceptorMetaDataBean")); }
public InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory) { List<InterceptorInfo> interceptors = interceptorResolutionStrategy.resolveRegisteredInterceptors(beanFactory); interceptors = interceptorOrderingStrategy.orderInterceptors(beanFactory, interceptors, getInterceptorOrder()); InterceptorMetaDataBean metaDataBean = new InterceptorMetaDataBean(interceptors); beanFactory.registerSingleton(INTERCEPTOR_META_DATA_BEAN, metaDataBean); return metaDataBean; }
InterceptorAwareBeanFactoryPostProcessor implements BeanFactoryPostProcessor, InitializingBean { public InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory) { List<InterceptorInfo> interceptors = interceptorResolutionStrategy.resolveRegisteredInterceptors(beanFactory); interceptors = interceptorOrderingStrategy.orderInterceptors(beanFactory, interceptors, getInterceptorOrder()); InterceptorMetaDataBean metaDataBean = new InterceptorMetaDataBean(interceptors); beanFactory.registerSingleton(INTERCEPTOR_META_DATA_BEAN, metaDataBean); return metaDataBean; } }
InterceptorAwareBeanFactoryPostProcessor implements BeanFactoryPostProcessor, InitializingBean { public InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory) { List<InterceptorInfo> interceptors = interceptorResolutionStrategy.resolveRegisteredInterceptors(beanFactory); interceptors = interceptorOrderingStrategy.orderInterceptors(beanFactory, interceptors, getInterceptorOrder()); InterceptorMetaDataBean metaDataBean = new InterceptorMetaDataBean(interceptors); beanFactory.registerSingleton(INTERCEPTOR_META_DATA_BEAN, metaDataBean); return metaDataBean; } InterceptorAwareBeanFactoryPostProcessor();  InterceptorAwareBeanFactoryPostProcessor(InterceptorResolutionStrategy interceptorResolutionStrategy); }
InterceptorAwareBeanFactoryPostProcessor implements BeanFactoryPostProcessor, InitializingBean { public InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory) { List<InterceptorInfo> interceptors = interceptorResolutionStrategy.resolveRegisteredInterceptors(beanFactory); interceptors = interceptorOrderingStrategy.orderInterceptors(beanFactory, interceptors, getInterceptorOrder()); InterceptorMetaDataBean metaDataBean = new InterceptorMetaDataBean(interceptors); beanFactory.registerSingleton(INTERCEPTOR_META_DATA_BEAN, metaDataBean); return metaDataBean; } InterceptorAwareBeanFactoryPostProcessor();  InterceptorAwareBeanFactoryPostProcessor(InterceptorResolutionStrategy interceptorResolutionStrategy); @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory); @Override void afterPropertiesSet(); void setInterceptorOrder(List<Class> interceptorOrder); List<Class> getInterceptorOrder(); }
InterceptorAwareBeanFactoryPostProcessor implements BeanFactoryPostProcessor, InitializingBean { public InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory) { List<InterceptorInfo> interceptors = interceptorResolutionStrategy.resolveRegisteredInterceptors(beanFactory); interceptors = interceptorOrderingStrategy.orderInterceptors(beanFactory, interceptors, getInterceptorOrder()); InterceptorMetaDataBean metaDataBean = new InterceptorMetaDataBean(interceptors); beanFactory.registerSingleton(INTERCEPTOR_META_DATA_BEAN, metaDataBean); return metaDataBean; } InterceptorAwareBeanFactoryPostProcessor();  InterceptorAwareBeanFactoryPostProcessor(InterceptorResolutionStrategy interceptorResolutionStrategy); @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory); @Override void afterPropertiesSet(); void setInterceptorOrder(List<Class> interceptorOrder); List<Class> getInterceptorOrder();  }