Package webwork.config
Class Configuration
java.lang.Object
webwork.config.Configuration
Access to WebWork configuration. Use the constants to access defined configuration settings.
The implementation is pluggable. The default implementation is to use the properties file "webwork.properties", which
must be in classpath. To install a new implementation implement
ConfigurationInterface and call
setConfiguration() with it.- Version:
- $Revision: 1.13 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectGet a named setting.static ConfigurationInterfaceGet the current configuration implementation.static LocaleWebWork locale accessorstatic StringGet a named setting as a string.static Iteratorlist()List setting namesstatic voidSet a named settingstatic voidsetConfiguration(ConfigurationInterface aConfig) Set the current configuration implementation.
-
Method Details
-
get
Get a named setting.- Throws:
IllegalArgumentException
-
getString
Get a named setting as a string.- Throws:
IllegalArgumentException
-
set
public static void set(String aName, Object aValue) throws IllegalArgumentException, UnsupportedOperationException Set a named setting -
list
List setting names -
getLocale
WebWork locale accessor -
getConfiguration
Get the current configuration implementation. -
setConfiguration
Set the current configuration implementation. Can only be called once.- Throws:
IllegalStateException
-