org.apache.struts2.dispatcher.Dispatcher
在它的init()方法中有一系列的init方法
里面的细节尚未理清。
DEFAULT_CONFIGURATION_PATHS = "struts-default.xml,struts-plugin.xml,struts.xml";
在它的init()方法中有一系列的init方法
init_DefaultProperties(); // [1]
init_TraditionalXmlConfigurations(); // [2]
init_LegacyStrutsProperties(); // [3]
init_CustomConfigurationProviders(); // [5]
init_FilterInitParameters() ; // [6]
init_AliasStandardObjects() ; // [7]
//等等
//关于[1]
//Load the default properties
configurationManager.addConfigurationProvider(new DefaultPropertiesProvider());
//[2]Load DEFAULT_CONFIGURATION_PATHS 中的配置文件
/**
* [7]BeanSelectionProvider 读取org/apache/struts2/struts-messages
* Selects the implementations of key framework extension points,
* using the loaded property constants.
*/
configurationManager.addConfigurationProvider(new BeanSelectionProvider());
里面的细节尚未理清。