use of com.opensymphony.xwork2.config.ConfigurationManager in project qi4j-sdk by Qi4j.
the class Qi4jFilterDispatcher method createConfigurationManager.
protected ConfigurationManager createConfigurationManager(FilterConfig filterConfig) {
ConfigurationManager configurationManager = new ConfigurationManager(BeanSelectionProvider.DEFAULT_BEAN_NAME);
configurationManager.addContainerProvider(new Qi4jContainerProvider(module(filterConfig)));
return configurationManager;
}
use of com.opensymphony.xwork2.config.ConfigurationManager in project qi4j-sdk by Qi4j.
the class Qi4jFilterDispatcher method createDispatcher.
@Override
protected Dispatcher createDispatcher(final FilterConfig filterConfig) {
Dispatcher dispatcher = super.createDispatcher(filterConfig);
ConfigurationManager configurationManager = createConfigurationManager(filterConfig);
dispatcher.setConfigurationManager(configurationManager);
return dispatcher;
}
use of com.opensymphony.xwork2.config.ConfigurationManager in project onebusaway-application-modules by camsys.
the class XWorkConfigurationFactoryBean method getObject.
public Configuration getObject() throws Exception {
ConfigurationManager confManager = new ConfigurationManager();
confManager.addContainerProvider(new XWorkConfigurationProvider());
SpringContainer springContainer = new SpringContainer();
springContainer.setApplicationContext(_context);
confManager.addContainerProvider(springContainer);
for (String xmlConfigurationSource : _xmlConfigurationSources) {
XmlConfigurationProvider xml = new XmlConfigurationProvider(xmlConfigurationSource, true);
xml.setThrowExceptionOnDuplicateBeans(false);
confManager.addContainerProvider(xml);
}
return confManager.getConfiguration();
}
Aggregations