public class DefaultConfiguration extends Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
protected Container |
container |
protected String |
defaultFrameworkBeanName |
protected Set<String> |
loadedFileNames |
protected static Logger |
LOG |
protected Map<String,PackageConfig> |
packageContexts |
protected RuntimeConfiguration |
runtimeConfiguration |
protected List<UnknownHandlerConfig> |
unknownHandlerStack |
| Constructor and Description |
|---|
DefaultConfiguration() |
DefaultConfiguration(String defaultBeanName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackageConfig(String name,
PackageConfig packageContext) |
protected RuntimeConfiguration |
buildRuntimeConfiguration()
This builds the internal runtime configuration used by Xwork for finding and configuring Actions from the
programmatic configuration data structures.
|
protected Container |
createBootstrapContainer(List<ContainerProvider> providers) |
void |
destroy()
Allows the configuration to clean up any resources used
|
Container |
getContainer() |
Set<String> |
getLoadedFileNames() |
PackageConfig |
getPackageConfig(String name) |
Set<String> |
getPackageConfigNames() |
Map<String,PackageConfig> |
getPackageConfigs() |
RuntimeConfiguration |
getRuntimeConfiguration()
The current runtime configuration.
|
List<UnknownHandlerConfig> |
getUnknownHandlerStack() |
void |
rebuildRuntimeConfiguration() |
void |
reload(List<ConfigurationProvider> providers)
Calls the ConfigurationProviderFactory.getConfig() to tell it to reload the configuration and then calls
buildRuntimeConfiguration().
|
List<PackageProvider> |
reloadContainer(List<ContainerProvider> providers)
Calls the ConfigurationProviderFactory.getConfig() to tell it to reload the configuration and then calls
buildRuntimeConfiguration().
|
PackageConfig |
removePackageConfig(String packageName)
Removes a package from the the list of packages.
|
protected ActionContext |
setContext(Container cont) |
void |
setUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack) |
protected static final Logger LOG
protected Map<String,PackageConfig> packageContexts
protected RuntimeConfiguration runtimeConfiguration
protected Container container
protected String defaultFrameworkBeanName
protected List<UnknownHandlerConfig> unknownHandlerStack
public DefaultConfiguration()
public DefaultConfiguration(String defaultBeanName)
public PackageConfig getPackageConfig(String name)
getPackageConfig in interface Configurationpublic List<UnknownHandlerConfig> getUnknownHandlerStack()
getUnknownHandlerStack in interface Configurationpublic void setUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack)
setUnknownHandlerStack in interface Configurationpublic Set<String> getPackageConfigNames()
getPackageConfigNames in interface Configurationpublic Map<String,PackageConfig> getPackageConfigs()
getPackageConfigs in interface Configurationpublic Set<String> getLoadedFileNames()
getLoadedFileNames in interface Configurationpublic RuntimeConfiguration getRuntimeConfiguration()
ConfigurationgetRuntimeConfiguration in interface Configurationpublic Container getContainer()
getContainer in interface Configurationpublic void addPackageConfig(String name, PackageConfig packageContext)
addPackageConfig in interface Configurationpublic PackageConfig removePackageConfig(String packageName)
ConfigurationremovePackageConfig in interface ConfigurationpackageName - the name of the package to removepublic void destroy()
destroy in interface Configurationpublic void rebuildRuntimeConfiguration()
rebuildRuntimeConfiguration in interface Configurationpublic void reload(List<ConfigurationProvider> providers) throws ConfigurationException
reload in interface ConfigurationConfigurationExceptionpublic List<PackageProvider> reloadContainer(List<ContainerProvider> providers) throws ConfigurationException
reloadContainer in interface ConfigurationConfigurationExceptionprotected ActionContext setContext(Container cont)
protected Container createBootstrapContainer(List<ContainerProvider> providers)
protected RuntimeConfiguration buildRuntimeConfiguration() throws ConfigurationException
It basically flattens the data structures to make the information easier to access. It will take
an ActionConfig and combine its data with all inherited dast. For example, if the ActionConfig
is in a package that contains a global result and it also contains a result, the resulting ActionConfig
will have two results.
ConfigurationExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.