Dispatcher dispatcher = Dispatcher.getInstance();
ConfigurationManager configurationManager = dispatcher.getConfigurationManager();
Configuration config = configurationManager.getConfiguration();
RuntimeConfiguration runtimeConfiguration = config.getRuntimeConfiguration();
//所有的namespace
Map<String, Map<String, ActionConfig>> namespaces = runtimeConfiguration.getActionConfigs();
Iterator nskeys = namespaces.keySet().iterator();
Iterator acKeys;
//遍历namespace
while (nskeys.hasNext()) {
Map<String, ActionConfig> actionConfigs = namespaces.get(nskeys.next());
//获得所有的action配置信息
acKeys = actionConfigs.keySet().iterator();
while (acKeys.hasNext()) {
ActionConfig ac = actionConfigs.get(acKeys.next());
System.out.println(ac.getName());
}
}