The ConfigurationProvider is an interface that determines Struts2 Configuration. Struts2 interface describes the framework's configuration. By default, the framework loads its configurations through via an xml document by using the StrutsXmlConfigurationProvider
. This is configurable through The provider can be configured through a Dispatcher's DispatcherListener. See here for more info regarding DispatcherListener Dispatcher Listener.
Example
Code Block |
---|
static { Dispatcher.addDispatcherListener(new DispatcherListener() { .... public void dispatcherInitialized(Dispatcher du) { ConfigurationManager confManager = du.getConfigurationManager(); confManager.addConfigurationProvider( ... ); } .... }); } |