|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.config.domain.ConfigControl
public final class ConfigControl
Controls how configurations are configured within a given thread.
The control instance is stored in the current thread as a thread-local variable. Please make sure to reset the value after use in a finally block.
Constructor Summary | |
---|---|
ConfigControl(boolean adminMode) Default constructor. |
Method Summary | |
---|---|
static void |
cleanUp() Removes the thread-local configuration control. |
static ConfigControl |
get() Provides access to the thread-local context. |
boolean |
isAdminMode() Returns the switch to turn the management configuration into an administration configuration. |
void |
setAdminMode(boolean adminMode) Sets the switch to turn the management configuration into an administration configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigControl(boolean adminMode)
adminMode
- the switch to turn the management configuration into an administration configuration.
Method Detail |
---|
public boolean isAdminMode()
public void setAdminMode(boolean adminMode)
adminMode
- the switch to turn the management configuration into an administration configuration.
public static ConfigControl get()
public static void cleanUp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |