|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwebwork.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 subclass this class and call setConfiguration() with it.
Constructor Summary | |
Configuration()
|
Method Summary | |
static java.lang.Object |
get(java.lang.String aName)
Get a named setting. |
static Configuration |
getConfiguration()
Get the current configuration implementation. |
java.lang.Object |
getImpl(java.lang.String aName)
Get a named setting. |
static java.util.Locale |
getLocale()
WebWork locale accessor |
static java.lang.String |
getString(java.lang.String aName)
Get a named setting as a string. |
static java.util.Iterator |
list()
List setting names |
java.util.Iterator |
listImpl()
List setting names |
static void |
set(java.lang.String aName,
java.lang.Object aValue)
Set a named setting |
static void |
setConfiguration(Configuration aConfig)
Set the current configuration implementation. |
void |
setImpl(java.lang.String aName,
java.lang.Object aValue)
Set a named setting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Configuration()
Method Detail |
public static java.lang.Object get(java.lang.String aName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static java.lang.String getString(java.lang.String aName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static void set(java.lang.String aName, java.lang.Object aValue) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException
public static java.util.Iterator list()
public static java.util.Locale getLocale()
public static Configuration getConfiguration()
public static void setConfiguration(Configuration aConfig) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public java.lang.Object getImpl(java.lang.String aName) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if there is no configuration parameter with the given name.public void setImpl(java.lang.String aName, java.lang.Object aValue) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException
public java.util.Iterator listImpl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |