Search in sources :

Example 1 with ConfigurationManager

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

Example 2 with 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;
}
Also used : Dispatcher(org.apache.struts2.dispatcher.Dispatcher) FilterDispatcher(org.apache.struts2.dispatcher.FilterDispatcher) ConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager)

Example 3 with ConfigurationManager

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();
}
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)3 XWorkConfigurationProvider (com.opensymphony.xwork2.config.providers.XWorkConfigurationProvider)1 XmlConfigurationProvider (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider)1 Dispatcher (org.apache.struts2.dispatcher.Dispatcher)1 FilterDispatcher (org.apache.struts2.dispatcher.FilterDispatcher)1