public class ServletContextConfigService extends java.lang.Object implements ConfigService
ServletContext is available in the
filter so this can be installed there. These values can be cached.| Constructor and Description |
|---|
ServletContextConfigService(ServletContext c,
AppContext conn) |
| 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<? super ConfigService> |
getType()
Returns the type of service the class should be registered under.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property
This method is for making persistent changes to the configuration.
|
public ServletContextConfigService(ServletContext c,
AppContext conn)
public void clearServiceProperties()
ConfigServiceclearServiceProperties in interface ConfigServicepublic 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<? super ConfigService> getType()
AppContextServicegetType in interface AppContextService<ConfigService>