Package com.tangosol.application
Interface Context
-
- All Known Subinterfaces:
Context.ExtendedContext
- All Known Implementing Classes:
ContainerAdapter.DefaultContext
,DefaultCacheServer.LifecycleContext
public interface Context
Context 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 interface
Context.ExtendedContext
Deprecated.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 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.default String
getDefaultScope()
Returns the default scope name to use.Context.ExtendedContext
getExtendedContext()
Deprecated.as useless, left for backward compatibility onlydefault Serializer
getNamedSerializer(String sName)
Produces instances of a namedSerializer
.String
getPofConfigURI()
Return the POF configuration URI.ServiceMonitor
getServiceMonitor()
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 theCacheFactoryBuilder
in use.- Returns:
- the
CacheFactoryBuilder
-
getClassLoader
ClassLoader getClassLoader()
Return theClassLoader
in 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 theContainerContext
associated with the ContainerAdapter.- Returns:
- the
ContainerContext
instance 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
-
-