Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.application
Class ContainerAdapter.DefaultExtendedContext

java.lang.Object
  extended by com.tangosol.application.ContainerAdapter.DefaultExtendedContext

All Implemented Interfaces:
Context.ExtendedContext
Enclosing class:
ContainerAdapter

public static class ContainerAdapter.DefaultExtendedContext
extends java.lang.Object
implements Context.ExtendedContext

The ContainerAdapter.DefaultContext represents the context for an application.

Author:
cf 2011.07.01

Constructor Summary
ContainerAdapter.DefaultExtendedContext(CacheFactoryBuilder builder, java.lang.ClassLoader loader, java.lang.String sAppName, java.lang.String sCacheConfigURI, ServiceMonitor monitor, java.lang.String sPofConfigURI)
          Constructor.
ContainerAdapter.DefaultExtendedContext(Context.ExtendedContext extendedContext)
          Constructor copying from the passed in parameter.

 

Method Summary
 java.lang.String getApplicationName()
          Return the name of the application.
 java.lang.String getCacheConfigURI()
          Return the cache configuration URI.
 CacheFactoryBuilder getCacheFactoryBuilder()
          Return the CacheFactoryBuilder in use.
 java.lang.ClassLoader getClassLoader()
          Return the ClassLoader in use.
 java.lang.String getPofConfigURI()
          Return the POF configuration URI.
 ServiceMonitor getServiceMonitor()
          Return the keep alive facility for the application services.

 

Constructor Detail

ContainerAdapter.DefaultExtendedContext

public ContainerAdapter.DefaultExtendedContext(Context.ExtendedContext extendedContext)
Constructor copying from the passed in parameter.
Parameters:
extendedContext - the Context.ExtendedContext to copy from

ContainerAdapter.DefaultExtendedContext

public ContainerAdapter.DefaultExtendedContext(CacheFactoryBuilder builder,
                                               java.lang.ClassLoader loader,
                                               java.lang.String sAppName,
                                               java.lang.String sCacheConfigURI,
                                               ServiceMonitor monitor,
                                               java.lang.String sPofConfigURI)
Constructor.
Parameters:
builder - the CacheFactoryBuilder to use
loader - the ClassLoader to use
sAppName - the application name to use
sCacheConfigURI - the cache configuration URI
monitor - the ServiceMonitor to use
sPofConfigURI - the POF configuration URI

Method Detail

getCacheFactoryBuilder

public CacheFactoryBuilder getCacheFactoryBuilder()
Return the CacheFactoryBuilder in use.
Specified by:
getCacheFactoryBuilder in interface Context.ExtendedContext
Returns:
the CacheFactoryBuilder

getClassLoader

public java.lang.ClassLoader getClassLoader()
Return the ClassLoader in use.
Specified by:
getClassLoader in interface Context.ExtendedContext
Returns:
the ClassLoader.

getApplicationName

public java.lang.String getApplicationName()
Return the name of the application.
Specified by:
getApplicationName in interface Context.ExtendedContext
Returns:
the name of the application.

getServiceMonitor

public ServiceMonitor getServiceMonitor()
Return the keep alive facility for the application services.
Specified by:
getServiceMonitor in interface Context.ExtendedContext
Returns:
the ServiceMonitor

getPofConfigURI

public java.lang.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());
 
Specified by:
getPofConfigURI in interface Context.ExtendedContext
Returns:
the POF configuration URI

getCacheConfigURI

public java.lang.String getCacheConfigURI()
Return the cache configuration URI.
Specified by:
getCacheConfigURI in interface Context.ExtendedContext
Returns:
the cache configuration URI

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.