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()
Context
ConfigurableCacheFactory
. This method
will return the same reference as a call to
ctx.getExtendedContext().getCacheFactoryBuilder(). getConfigurableCacheFactory(ctx.getClassLoader());
getConfigurableCacheFactory
in interface Context
ConfigurableCacheFactory
public CacheFactoryBuilder getCacheFactoryBuilder()
Context
CacheFactoryBuilder
in use.getCacheFactoryBuilder
in interface Context
CacheFactoryBuilder
public ClassLoader getClassLoader()
Context
ClassLoader
in use.getClassLoader
in interface Context
ClassLoader
public String getApplicationName()
Context
getApplicationName
in interface Context
public ServiceMonitor getServiceMonitor()
Context
getServiceMonitor
in interface Context
ServiceMonitor
public String getPofConfigURI()
Context
For advanced use cases, the resource identified by this URI can be found by calling:
ctx.getExtendedContext().getClassLoader().getResource(ctx.getPofConfigUri());
getPofConfigURI
in interface Context
public String getCacheConfigURI()
Context
getCacheConfigURI
in interface Context
public ContainerContext getContainerContext()
Context
ContainerContext
associated with the ContainerAdapter.getContainerContext
in interface Context
ContainerContext
instance or nullpublic Context.ExtendedContext getExtendedContext()
getExtendedContext
in interface Context
Context.ExtendedContext