Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Configuration Provider & Configuration
Added by tm_jee, last edited by Ted Husted on Feb 12, 2007  (view change)

The ConfigurationProvider interface describes the framework's configuration. By default, the framework loads its configurations via an xml document by using the StrutsXmlConfigurationProvider. The provider can be configured through a Dispatcher's DispatcherListener.

Example

 static {
   Dispatcher.addDispatcherListener(new DispatcherListener() {
     ....
     public void dispatcherInitialized(Dispatcher du) {
         ConfigurationManager confManager = du.getConfigurationManager();
         confManager.addConfigurationProvider( ... );
     }
     ....
   });
 }

Back To: Architects Guide