|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.config.impl.DefaultConfiguration
public class DefaultConfiguration
DefaultConfiguration
Nested Class Summary | |
---|---|
(package private) class |
DefaultConfiguration.ContainerProperties
|
private class |
DefaultConfiguration.RuntimeConfigurationImpl
|
Field Summary | |
---|---|
protected Container |
container
|
protected String |
defaultFrameworkBeanName
|
protected Set<String> |
loadedFileNames
|
protected static Logger |
LOG
|
(package private) ObjectFactory |
objectFactory
|
protected Map<String,PackageConfig> |
packageContexts
|
protected RuntimeConfiguration |
runtimeConfiguration
|
Constructor Summary | |
---|---|
DefaultConfiguration()
|
|
DefaultConfiguration(String defaultBeanName)
|
Method Summary | |
---|---|
void |
addPackageConfig(String name,
PackageConfig packageContext)
|
private ActionConfig |
buildFullActionConfig(PackageConfig packageContext,
ActionConfig baseConfig)
Builds the full runtime actionconfig with all of the defaults and inheritance |
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()
|
void |
destroy()
Allows the configuration to clean up any resources used |
Container |
getContainer()
|
Set<String> |
getLoadedFileNames()
|
PackageConfig |
getPackageConfig(String name)
|
Set |
getPackageConfigNames()
|
Map |
getPackageConfigs()
|
RuntimeConfiguration |
getRuntimeConfiguration()
The current runtime configuration. |
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(). |
protected ActionContext |
setContext(Container cont)
|
private void |
setDefaultResults(Map<String,ResultConfig> results,
PackageConfig packageContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOG
protected Map<String,PackageConfig> packageContexts
protected RuntimeConfiguration runtimeConfiguration
protected Container container
protected String defaultFrameworkBeanName
protected Set<String> loadedFileNames
ObjectFactory objectFactory
Constructor Detail |
---|
public DefaultConfiguration()
public DefaultConfiguration(String defaultBeanName)
Method Detail |
---|
public PackageConfig getPackageConfig(String name)
getPackageConfig
in interface Configuration
public Set getPackageConfigNames()
getPackageConfigNames
in interface Configuration
public Map getPackageConfigs()
getPackageConfigs
in interface Configuration
public Set<String> getLoadedFileNames()
getLoadedFileNames
in interface Configuration
public RuntimeConfiguration getRuntimeConfiguration()
Configuration
getRuntimeConfiguration
in interface Configuration
public Container getContainer()
getContainer
in interface Configuration
public void addPackageConfig(String name, PackageConfig packageContext)
addPackageConfig
in interface Configuration
public void destroy()
destroy
in interface Configuration
public void rebuildRuntimeConfiguration()
rebuildRuntimeConfiguration
in interface Configuration
public void reload(List<ConfigurationProvider> providers) throws ConfigurationException
reload
in interface Configuration
ConfigurationException
public List<PackageProvider> reloadContainer(List<ContainerProvider> providers) throws ConfigurationException
reloadContainer
in interface Configuration
ConfigurationException
protected ActionContext setContext(Container cont)
protected Container createBootstrapContainer()
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.
ConfigurationException
private void setDefaultResults(Map<String,ResultConfig> results, PackageConfig packageContext)
private ActionConfig buildFullActionConfig(PackageConfig packageContext, ActionConfig baseConfig) throws ConfigurationException
packageContext
- the PackageConfig which holds the base config we're building frombaseConfig
- the ActionConfig which holds only the configuration specific to itself, without the defaults
and inheritance
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |