Package com.tangosol.net
Class DefaultCacheServer.LifecycleContext
- java.lang.Object
-
- com.tangosol.net.DefaultCacheServer.LifecycleContext
-
- All Implemented Interfaces:
Context
- Enclosing class:
- DefaultCacheServer
protected class DefaultCacheServer.LifecycleContext extends Object implements Context
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.application.Context
Context.ExtendedContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LifecycleContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getApplicationName()
Return the name of the application.String
getCacheConfigURI()
Return the cache configuration URI.CacheFactoryBuilder
getCacheFactoryBuilder()
Return theCacheFactoryBuilder
in use.ClassLoader
getClassLoader()
Return theClassLoader
in use.ConfigurableCacheFactory
getConfigurableCacheFactory()
Return the correspondingConfigurableCacheFactory
.ContainerContext
getContainerContext()
Return theContainerContext
associated with the ContainerAdapter.Context.ExtendedContext
getExtendedContext()
Deprecated.String
getPofConfigURI()
Return the POF configuration URI.ServiceMonitor
getServiceMonitor()
Return the keep-alive facility for the application services.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.application.Context
getDefaultScope, getNamedSerializer
-
-
-
-
Method Detail
-
getConfigurableCacheFactory
public ConfigurableCacheFactory getConfigurableCacheFactory()
Description copied from interface:Context
Return the correspondingConfigurableCacheFactory
. This method will return the same reference as a call toctx.getExtendedContext().getCacheFactoryBuilder(). getConfigurableCacheFactory(ctx.getClassLoader());
- Specified by:
getConfigurableCacheFactory
in interfaceContext
- Returns:
- the
ConfigurableCacheFactory
-
getCacheFactoryBuilder
public CacheFactoryBuilder getCacheFactoryBuilder()
Description copied from interface:Context
Return theCacheFactoryBuilder
in use.- Specified by:
getCacheFactoryBuilder
in interfaceContext
- Returns:
- the
CacheFactoryBuilder
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:Context
Return theClassLoader
in use.- Specified by:
getClassLoader
in interfaceContext
- Returns:
- the
ClassLoader
-
getApplicationName
public String getApplicationName()
Description copied from interface:Context
Return the name of the application.- Specified by:
getApplicationName
in interfaceContext
- Returns:
- the name of the application
-
getServiceMonitor
public ServiceMonitor getServiceMonitor()
Description copied from interface:Context
Return the keep-alive facility for the application services.- Specified by:
getServiceMonitor
in interfaceContext
- Returns:
- the
ServiceMonitor
-
getPofConfigURI
public String getPofConfigURI()
Description copied from interface:Context
Return the POF configuration URI.For advanced use cases, the resource identified by this URI can be found by calling:
ctx.getExtendedContext().getClassLoader().getResource(ctx.getPofConfigUri());
- Specified by:
getPofConfigURI
in interfaceContext
- Returns:
- the POF configuration URI
-
getCacheConfigURI
public String getCacheConfigURI()
Description copied from interface:Context
Return the cache configuration URI.- Specified by:
getCacheConfigURI
in interfaceContext
- Returns:
- the cache configuration URI
-
getContainerContext
public ContainerContext getContainerContext()
Description copied from interface:Context
Return theContainerContext
associated with the ContainerAdapter.- Specified by:
getContainerContext
in interfaceContext
- Returns:
- the
ContainerContext
instance or null
-
getExtendedContext
@Deprecated public Context.ExtendedContext getExtendedContext()
Deprecated.- Specified by:
getExtendedContext
in interfaceContext
- Returns:
- the
Context.ExtendedContext
-
-