protected class DefaultCacheServer.LifecycleContext extends Object implements com.tangosol.application.Context
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 . |
com.tangosol.application.ContainerContext |
getContainerContext()
Return the
ContainerContext associated with the ContainerAdapter. |
com.tangosol.application.Context.ExtendedContext |
getExtendedContext() |
String |
getPofConfigURI()
Return the POF configuration URI.
|
ServiceMonitor |
getServiceMonitor()
Return the keep-alive facility for the application services.
|
public ConfigurableCacheFactory getConfigurableCacheFactory()
com.tangosol.application.Context
ConfigurableCacheFactory
. This method
will return the same reference as a call to
ctx.getExtendedContext().getCacheFactoryBuilder(). getConfigurableCacheFactory(ctx.getClassLoader());
getConfigurableCacheFactory
in interface com.tangosol.application.Context
ConfigurableCacheFactory
public CacheFactoryBuilder getCacheFactoryBuilder()
com.tangosol.application.Context
CacheFactoryBuilder
in use.getCacheFactoryBuilder
in interface com.tangosol.application.Context
CacheFactoryBuilder
public ClassLoader getClassLoader()
com.tangosol.application.Context
ClassLoader
in use.getClassLoader
in interface com.tangosol.application.Context
ClassLoader
public String getApplicationName()
com.tangosol.application.Context
getApplicationName
in interface com.tangosol.application.Context
public ServiceMonitor getServiceMonitor()
com.tangosol.application.Context
getServiceMonitor
in interface com.tangosol.application.Context
ServiceMonitor
public String getPofConfigURI()
com.tangosol.application.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 com.tangosol.application.Context
public String getCacheConfigURI()
com.tangosol.application.Context
getCacheConfigURI
in interface com.tangosol.application.Context
public com.tangosol.application.ContainerContext getContainerContext()
com.tangosol.application.Context
ContainerContext
associated with the ContainerAdapter.getContainerContext
in interface com.tangosol.application.Context
ContainerContext
instance or nullpublic com.tangosol.application.Context.ExtendedContext getExtendedContext()
getExtendedContext
in interface com.tangosol.application.Context
Context.ExtendedContext