Package org.apache.struts2.config
Interface Configuration
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- DefaultConfiguration,- MockConfiguration
XWork configuration.
- Author:
- Mike
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPackageConfig(String name, PackageConfig packageConfig) voiddestroy()Allow the Configuration to clean up any resources that have been used.getPackageConfig(String name) The current runtime configuration.voidreloadContainer(List<ContainerProvider> containerProviders) removePackageConfig(String packageName) Removes a package from the the list of packages.voidsetUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack) 
- 
Method Details- 
rebuildRuntimeConfigurationvoid rebuildRuntimeConfiguration()
- 
getPackageConfig
- 
getPackageConfigNames
- 
getPackageConfigsMap<String,PackageConfig> getPackageConfigs()
- 
getRuntimeConfigurationRuntimeConfiguration getRuntimeConfiguration()The current runtime configuration. Currently, if changes have been made to the Configuration since the last time buildRuntimeConfiguration() was called, you'll need to make sure to.- Returns:
- the current runtime configuration
 
- 
addPackageConfig
- 
removePackageConfigRemoves a package from the the list of packages. Changes to the configuration won't take effect until buildRuntimeConfiguration is called.- Parameters:
- packageName- the name of the package to remove
- Returns:
- the package removed (if any)
 
- 
destroyvoid destroy()Allow the Configuration to clean up any resources that have been used.
- 
reloadContainerList<PackageProvider> reloadContainer(List<ContainerProvider> containerProviders) throws ConfigurationException - Parameters:
- containerProviders- list of container providers
- Returns:
- list of package providers
- Throws:
- ConfigurationException- in case of any configuration errors
- Since:
- 2.1
 
- 
getContainerContainer getContainer()- Returns:
- the container
 
- 
getLoadedFileNames
- 
getUnknownHandlerStackList<UnknownHandlerConfig> getUnknownHandlerStack()- Returns:
- list of unknown handlers
- Since:
- 2.1
 
- 
setUnknownHandlerStack- Parameters:
- unknownHandlerStack- list of unknown handlers
- Since:
- 2.1
 
 
-