public static class ContainerAdapter.DefaultContext extends Object implements Context.ExtendedContext
ContainerAdapter.DefaultContext represents the context for an application.Context.ExtendedContext| Constructor and Description |
|---|
DefaultContext(CacheFactoryBuilder builder, ClassLoader loader, String sAppName, String sCacheConfigURI, ServiceMonitor monitor, String sPofConfigURI, ContainerContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ExtensibleConfigurableCacheFactory |
buildFactory()
Build the ExtensibleConfigurableCacheFactory to be used by this context.
|
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 DefaultContext(CacheFactoryBuilder builder, ClassLoader loader, String sAppName, String sCacheConfigURI, ServiceMonitor monitor, String sPofConfigURI, ContainerContext ctx)
builder - the CacheFactoryBuilder to useloader - the ClassLoader to usesAppName - the application name to usesCacheConfigURI - the cache configuration URImonitor - the ServiceMonitor to usesPofConfigURI - the POF configuration URIpublic ConfigurableCacheFactory getConfigurableCacheFactory()
ConfigurableCacheFactory. This method will return the same reference as a call to
ctx.getExtendedContext().getCacheFactoryBuilder().
getConfigurableCacheFactory(ctx.getClassLoader());
getConfigurableCacheFactory in interface ContextConfigurableCacheFactorypublic CacheFactoryBuilder getCacheFactoryBuilder()
CacheFactoryBuilder in use.getCacheFactoryBuilder in interface ContextCacheFactoryBuilderpublic ClassLoader getClassLoader()
ClassLoader in use.getClassLoader in interface ContextClassLoaderpublic String getApplicationName()
getApplicationName in interface Contextpublic ServiceMonitor getServiceMonitor()
getServiceMonitor in interface ContextServiceMonitorpublic String getPofConfigURI()
For advanced use cases, the resource identified by this URI can be found by calling:
ctx.getExtendedContext().getClassLoader().getResource(ctx.getPofConfigUri());
getPofConfigURI in interface Contextpublic String getCacheConfigURI()
getCacheConfigURI in interface Contextpublic ContainerContext getContainerContext()
ContainerContext associated with the ContainerAdapter.getContainerContext in interface ContextContainerContext instance or nullpublic Context.ExtendedContext getExtendedContext()
getExtendedContext in interface Contextprotected ExtensibleConfigurableCacheFactory buildFactory()