|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.mock.MockConfiguration
public class MockConfiguration
Mock for an Configuration.
| Constructor Summary | |
|---|---|
MockConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addPackageConfig(String name,
PackageConfig packageContext)
Add a PackageConfig with package name specified as
name |
void |
buildRuntimeConfiguration()
|
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 Configuration.getRuntimeConfiguration() |
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 |
| Constructor Detail |
|---|
public MockConfiguration()
| Method Detail |
|---|
public Map getParameters()
Configuration
....
....
getParameters in interface Configurationpublic String getParameter(String name)
Configurationname.
getParameter in interface Configurationname - parameter name
public void setParameter(String name,
String value)
Configuration
setParameter in interface Configurationname - parameter namevalue - parameter valuepublic PackageConfig getPackageConfig(String name)
ConfigurationPackageConfig (package configuration) for
package with named as name
getPackageConfig in interface Configurationname - package name
PackageConfigpublic Set getPackageConfigNames()
ConfigurationPackageConfigs name as a Set.
getPackageConfigNames in interface Configurationpublic Map getPackageConfigs()
ConfigurationPackageConfig as a Map with
the key as the package name and its value as the corresponding
PackageConfig
getPackageConfigs in interface Configurationpublic RuntimeConfiguration getRuntimeConfiguration()
Configuration
getRuntimeConfiguration in interface Configuration
public void addPackageConfig(String name,
PackageConfig packageContext)
ConfigurationPackageConfig with package name specified as
name
addPackageConfig in interface Configurationpublic void buildRuntimeConfiguration()
public void destroy()
Configuration
destroy in interface Configurationpublic void rebuildRuntimeConfiguration()
ConfigurationRuntimeConfiguration of XWork's configuration.
rebuildRuntimeConfiguration in interface Configuration
public void reload()
throws ConfigurationException
ConfigurationRuntimeConfiguration using Configuration.getRuntimeConfiguration()
reload in interface ConfigurationConfigurationExceptionpublic void removePackageConfig(String name)
ConfigurationPackageConfig for package with name as
name.
removePackageConfig in interface Configurationname - package name to be removed
|
WebWork Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||