|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.config.impl.DefaultConfiguration
public class DefaultConfiguration
DefaultConfiguration
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
LOG
|
protected RuntimeConfiguration |
runtimeConfiguration
|
| Constructor Summary | |
|---|---|
DefaultConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addPackageConfig(String name,
PackageConfig packageContext)
Add a PackageConfig with package name specified as
name |
protected RuntimeConfiguration |
buildRuntimeConfiguration()
This methodName builds the internal runtime configuration used by Xwork for finding and configuring Actions from the programmatic configuration data structures. |
void |
destroy()
Allows the configuration to clean up any resources used |
PackageConfig |
getPackageConfig(String name)
Return the PackageConfig (package configuration) for
package with named as name |
Set |
getPackageConfigNames()
Return the PackageConfigs name as a Set. |
Map |
getPackageConfigs()
Return the PackageConfig as a Map with
the key as the package name and its value as the corresponding
PackageConfig |
String |
getParameter(String name)
Return the configuration parameter value for with parameter name as name. |
Map |
getParameters()
Return the configuration parameters in xwork.xml |
RuntimeConfiguration |
getRuntimeConfiguration()
The current runtime configuration. |
void |
rebuildRuntimeConfiguration()
Reload xwork configuration, once this is done, we need to grab the RuntimeConfiguration using getRuntimeConfiguration() |
void |
reload()
Reload xwork configurations, by asking all of the ConfigurationProviders
to reinitialize this DefaultConfiguration and then
rebuildRuntimeConfiguration(). |
void |
removePackageConfig(String name)
Remove the PackageConfig for package with name as
name. |
void |
setParameter(String name,
String value)
Set the configuration parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
protected RuntimeConfiguration runtimeConfiguration
| Constructor Detail |
|---|
public DefaultConfiguration()
| Method Detail |
|---|
public Map getParameters()
....
....
getParameters in interface Configurationpublic String getParameter(String name)
name.
getParameter in interface Configurationname - parameter name
public void setParameter(String name,
String value)
setParameter in interface Configurationname - parameter namevalue - parameter valuepublic PackageConfig getPackageConfig(String name)
PackageConfig (package configuration) for
package with named as name
getPackageConfig in interface Configurationname - package name
PackageConfigpublic Set getPackageConfigNames()
PackageConfigs name as a Set.
getPackageConfigNames in interface Configurationpublic Map getPackageConfigs()
PackageConfig as a Map with
the key as the package name and its value as the corresponding
PackageConfig
getPackageConfigs in interface Configurationpublic RuntimeConfiguration getRuntimeConfiguration()
getRuntimeConfiguration in interface Configuration
public void addPackageConfig(String name,
PackageConfig packageContext)
PackageConfig with package name specified as
name
addPackageConfig in interface Configurationname - packageConfig - public void destroy()
destroy in interface Configurationpublic void rebuildRuntimeConfiguration()
RuntimeConfiguration using getRuntimeConfiguration()
rebuildRuntimeConfiguration in interface ConfigurationConfigurationException
public void reload()
throws ConfigurationException
ConfigurationProviders
to reinitialize this DefaultConfiguration and then
rebuildRuntimeConfiguration().
reload in interface ConfigurationConfigurationExceptionpublic void removePackageConfig(String name)
PackageConfig for package with name as
name.
removePackageConfig in interface Configurationname - package name to be removed
protected RuntimeConfiguration buildRuntimeConfiguration()
throws ConfigurationException
ConfigurationException
|
WebWork Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||