use of com.opensymphony.xwork2.config.providers.XWorkConfigurationProvider 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