Package com.tangosol.application
Interface Context
- 
- All Known Subinterfaces:
 Context.ExtendedContext
- All Known Implementing Classes:
 ContainerAdapter.DefaultContext,DefaultCacheServer.LifecycleContext
public interface ContextContext represents various aspects of Coherence infrastructure that could be accessed by application code working in the context of theContainerAdapter.- Since:
 - Coherence 12.1.2
 - Author:
 - cf 2011.07.01
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceContext.ExtendedContextDeprecated.as of 12.2.1, left only for backward compatibility 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StringgetApplicationName()Return the name of the application.StringgetCacheConfigURI()Return the cache configuration URI.CacheFactoryBuildergetCacheFactoryBuilder()Return theCacheFactoryBuilderin use.ClassLoadergetClassLoader()Return theClassLoaderin use.ConfigurableCacheFactorygetConfigurableCacheFactory()Return the correspondingConfigurableCacheFactory.ContainerContextgetContainerContext()Return theContainerContextassociated with the ContainerAdapter.default StringgetDefaultScope()Returns the default scope name to use.Context.ExtendedContextgetExtendedContext()Deprecated.as useless, left for backward compatibility onlydefault SerializergetNamedSerializer(String sName)Produces instances of a namedSerializer.StringgetPofConfigURI()Return the POF configuration URI.ServiceMonitorgetServiceMonitor()Return the keep-alive facility for the application services. 
 - 
 
- 
- 
Method Detail
- 
getConfigurableCacheFactory
ConfigurableCacheFactory getConfigurableCacheFactory()
Return the correspondingConfigurableCacheFactory. This method will return the same reference as a call toctx.getExtendedContext().getCacheFactoryBuilder(). getConfigurableCacheFactory(ctx.getClassLoader());- Returns:
 - the 
ConfigurableCacheFactory 
 
- 
getCacheFactoryBuilder
CacheFactoryBuilder getCacheFactoryBuilder()
Return theCacheFactoryBuilderin use.- Returns:
 - the 
CacheFactoryBuilder 
 
- 
getClassLoader
ClassLoader getClassLoader()
Return theClassLoaderin use.- Returns:
 - the 
ClassLoader 
 
- 
getApplicationName
String getApplicationName()
Return the name of the application.- Returns:
 - the name of the application
 
 
- 
getServiceMonitor
ServiceMonitor getServiceMonitor()
Return the keep-alive facility for the application services.- Returns:
 - the 
ServiceMonitor 
 
- 
getPofConfigURI
String getPofConfigURI()
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());- Returns:
 - the POF configuration URI
 
 
- 
getCacheConfigURI
String getCacheConfigURI()
Return the cache configuration URI.- Returns:
 - the cache configuration URI
 
 
- 
getContainerContext
ContainerContext getContainerContext()
Return theContainerContextassociated with the ContainerAdapter.- Returns:
 - the 
ContainerContextinstance or null 
 
- 
getDefaultScope
default String getDefaultScope()
Returns the default scope name to use.- Returns:
 - the default scope name to use
 
 
- 
getNamedSerializer
default Serializer getNamedSerializer(String sName)
Produces instances of a namedSerializer.- Parameters:
 sName- the name of the serializer- Returns:
 - an instance of a named 
Serializer - Throws:
 NullPointerException- if the name parameter is nullIllegalArgumentException- if no serializer is discoverable with the specified name
 
- 
getExtendedContext
Context.ExtendedContext getExtendedContext()
Deprecated.as useless, left for backward compatibility only- Returns:
 - the 
Context.ExtendedContext 
 
 - 
 
 -