|
||||||||||
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 PackageConfig s 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 Configuration
public String getParameter(String name)
Configuration
name
.
getParameter
in interface Configuration
name
- parameter name
public void setParameter(String name, String value)
Configuration
setParameter
in interface Configuration
name
- parameter namevalue
- parameter valuepublic PackageConfig getPackageConfig(String name)
Configuration
PackageConfig
(package configuration) for
package with named as name
getPackageConfig
in interface Configuration
name
- package name
PackageConfig
public Set getPackageConfigNames()
Configuration
PackageConfig
s name as a Set
.
getPackageConfigNames
in interface Configuration
public Map getPackageConfigs()
Configuration
PackageConfig
as a Map
with
the key as the package name and its value as the corresponding
PackageConfig
getPackageConfigs
in interface Configuration
public RuntimeConfiguration getRuntimeConfiguration()
Configuration
getRuntimeConfiguration
in interface Configuration
public void addPackageConfig(String name, PackageConfig packageContext)
Configuration
PackageConfig
with package name specified as
name
addPackageConfig
in interface Configuration
public void buildRuntimeConfiguration()
public void destroy()
Configuration
destroy
in interface Configuration
public void rebuildRuntimeConfiguration()
Configuration
RuntimeConfiguration
of XWork's configuration.
rebuildRuntimeConfiguration
in interface Configuration
public void reload() throws ConfigurationException
Configuration
RuntimeConfiguration
using Configuration.getRuntimeConfiguration()
reload
in interface Configuration
ConfigurationException
public void removePackageConfig(String name)
Configuration
PackageConfig
for package with name as
name
.
removePackageConfig
in interface Configuration
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 |