use of org.apache.tapestry5.internal.spring.SymbolBeanFactoryPostProcessor in project tapestry-5 by apache.
the class SpringModule method addSymbolSourceAsPropertyCustomizerForSpringBeans.
@Contribute(ApplicationContextCustomizer.class)
public static void addSymbolSourceAsPropertyCustomizerForSpringBeans(OrderedConfiguration<ApplicationContextCustomizer> configuration, final SymbolSource symbolSource) {
ApplicationContextCustomizer beanFactoryPostProcessorCustomizer = new ApplicationContextCustomizer() {
@Override
public void customizeApplicationContext(ServletContext servletContext, ConfigurableWebApplicationContext applicationContext) {
applicationContext.addBeanFactoryPostProcessor(new SymbolBeanFactoryPostProcessor(symbolSource));
}
};
configuration.add("BeanFactoryPostProcessorCustomizer", beanFactoryPostProcessorCustomizer);
}
Aggregations