|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configuration
XWork configuration.
| Method Summary | |
|---|---|
void |
addPackageConfig(String name,
PackageConfig packageConfig)
Add a PackageConfig with package name specified as
name |
void |
destroy()
Allow the Configuration to clean up any resources that have been 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()
Rebuild the RuntimeConfiguration of XWork's configuration. |
void |
reload()
Reload xwork configuration, once this is done, we need to grab the RuntimeConfiguration using getRuntimeConfiguration() |
void |
removePackageConfig(String name)
Remove the PackageConfig for package with name as
name. |
void |
setParameter(String name,
String value)
Set the configuration parameter. |
| Method Detail |
|---|
void rebuildRuntimeConfiguration()
RuntimeConfiguration of XWork's configuration.
Map getParameters()
....
....
String getParameter(String name)
name.
name - parameter name
void setParameter(String name,
String value)
name - parameter namevalue - parameter valuePackageConfig getPackageConfig(String name)
PackageConfig (package configuration) for
package with named as name
name - package name
PackageConfigSet getPackageConfigNames()
PackageConfigs name as a Set.
Map getPackageConfigs()
PackageConfig as a Map with
the key as the package name and its value as the corresponding
PackageConfig
RuntimeConfiguration getRuntimeConfiguration()
void addPackageConfig(String name,
PackageConfig packageConfig)
PackageConfig with package name specified as
name
name - packageConfig - void destroy()
void reload()
throws ConfigurationException
RuntimeConfiguration using getRuntimeConfiguration()
ConfigurationExceptionvoid removePackageConfig(String name)
PackageConfig for package with name as
name.
name - package name to be removed
|
WebWork Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||