protected class DefaultCacheServer.LifecycleContext extends Object implements Context
Context.ExtendedContext| Modifier | Constructor and Description |
|---|---|
protected |
LifecycleContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName()
Return the name of the application.
|
String |
getCacheConfigURI()
Return the cache configuration URI.
|
CacheFactoryBuilder |
getCacheFactoryBuilder()
Return the
CacheFactoryBuilder in use. |
ClassLoader |
getClassLoader()
Return the
ClassLoader in use. |
ConfigurableCacheFactory |
getConfigurableCacheFactory()
Return the corresponding
ConfigurableCacheFactory. |
ContainerContext |
getContainerContext()
Return the
ContainerContext associated with the ContainerAdapter. |
Context.ExtendedContext |
getExtendedContext() |
String |
getPofConfigURI()
Return the POF configuration URI.
|
ServiceMonitor |
getServiceMonitor()
Return the keep-alive facility for the application services.
|
public ConfigurableCacheFactory getConfigurableCacheFactory()
ContextConfigurableCacheFactory. This method
will return the same reference as a call to
ctx.getExtendedContext().getCacheFactoryBuilder().
getConfigurableCacheFactory(ctx.getClassLoader());
getConfigurableCacheFactory in interface ContextConfigurableCacheFactorypublic CacheFactoryBuilder getCacheFactoryBuilder()
ContextCacheFactoryBuilder in use.getCacheFactoryBuilder in interface ContextCacheFactoryBuilderpublic ClassLoader getClassLoader()
ContextClassLoader in use.getClassLoader in interface ContextClassLoaderpublic String getApplicationName()
ContextgetApplicationName in interface Contextpublic ServiceMonitor getServiceMonitor()
ContextgetServiceMonitor in interface ContextServiceMonitorpublic String getPofConfigURI()
ContextFor advanced use cases, the resource identified by this URI can be found by calling:
ctx.getExtendedContext().getClassLoader().getResource(ctx.getPofConfigUri());
getPofConfigURI in interface Contextpublic String getCacheConfigURI()
ContextgetCacheConfigURI in interface Contextpublic ContainerContext getContainerContext()
ContextContainerContext associated with the ContainerAdapter.getContainerContext in interface ContextContainerContext instance or nullpublic Context.ExtendedContext getExtendedContext()
getExtendedContext in interface ContextContext.ExtendedContext