public class CachedConfigService extends java.lang.Object implements ConfigService
DataBaseConfigService are very fragile so edit this
at your own peril.| Modifier and Type | Field and Description |
|---|---|
static Feature |
CACHED_CONFIG_FEATURE |
| Constructor and Description |
|---|
CachedConfigService(AppContext c) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ConfigServiceListener listener)
register a ConfigServiceListener
|
void |
cleanup()
AppContext is being closed. |
void |
clearServiceProperties()
clear any cached properties.
|
AppContext |
getContext() |
java.util.Properties |
getServiceProperties()
return the set of properties defined by the service
|
java.lang.Class<ConfigService> |
getType()
Returns the type of service the class should be registered under.
|
static void |
invalidate() |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property
This method is for making persistent changes to the configuration.
|
public static final Feature CACHED_CONFIG_FEATURE
public CachedConfigService(AppContext c)
public void clearServiceProperties()
ConfigServiceclearServiceProperties in interface ConfigServicepublic static void invalidate()
public java.util.Properties getServiceProperties()
ConfigServicegetServiceProperties in interface ConfigServicepublic AppContext getContext()
getContext in interface Contexedpublic void setProperty(java.lang.String name,
java.lang.String value)
throws java.lang.UnsupportedOperationException
ConfigServiceUnsupportedOperationExceptionsetProperty in interface ConfigServicejava.lang.UnsupportedOperationExceptionpublic void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic void addListener(ConfigServiceListener listener)
ConfigServiceaddListener in interface ConfigServicepublic java.lang.Class<ConfigService> getType()
AppContextServicegetType in interface AppContextService<ConfigService>