Search in sources :

Example 1 with XmlConfigurationProvider

use of com.opensymphony.xwork2.config.providers.XmlConfigurationProvider 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();
}
Also used : XmlConfigurationProvider(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider) XWorkConfigurationProvider(com.opensymphony.xwork2.config.providers.XWorkConfigurationProvider) ConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager)

Aggregations

ConfigurationManager (com.opensymphony.xwork2.config.ConfigurationManager)1 XWorkConfigurationProvider (com.opensymphony.xwork2.config.providers.XWorkConfigurationProvider)1 XmlConfigurationProvider (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider)1