|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork2.config.impl.DefaultConfiguration
public class DefaultConfiguration
DefaultConfiguration
Field Summary | |
---|---|
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 Summary | |
---|---|
DefaultConfiguration()
|
|
DefaultConfiguration(String defaultBeanName)
|
Method Summary | |
---|---|
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()
|
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)
|
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
protected List<UnknownHandlerConfig> unknownHandlerStack
Constructor Detail |
---|
public DefaultConfiguration()
public DefaultConfiguration(String defaultBeanName)
Method Detail |
---|
public PackageConfig getPackageConfig(String name)
getPackageConfig
in interface Configuration
public List<UnknownHandlerConfig> getUnknownHandlerStack()
getUnknownHandlerStack
in interface Configuration
public void setUnknownHandlerStack(List<UnknownHandlerConfig> unknownHandlerStack)
setUnknownHandlerStack
in interface Configuration
public Set<String> getPackageConfigNames()
getPackageConfigNames
in interface Configuration
public Map<String,PackageConfig> 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 PackageConfig removePackageConfig(String packageName)
Configuration
removePackageConfig
in interface Configuration
packageName
- the name of the package to remove
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |