Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.application
Class ContainerAdapter.DefaultContext

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

All Implemented Interfaces:
Context
Enclosing class:
ContainerAdapter

public static class ContainerAdapter.DefaultContext
extends java.lang.Object
implements Context

The ContainerAdapter.DefaultContext represents the context for an application.

Author:
cf 2011.07.01

Nested Class Summary

 

Nested classes/interfaces inherited from interface com.tangosol.application.Context
Context.ExtendedContext

 

Constructor Summary
ContainerAdapter.DefaultContext(CacheFactoryBuilder builder, java.lang.ClassLoader loader, java.lang.String sAppName, ConfigurableCacheFactory factory, java.lang.String sCacheConfigURI, ServiceMonitor monitor, java.lang.String sPofConfigURI)
          Constructor.
ContainerAdapter.DefaultContext(Context context)
          Constructor copying from the passed in parameter.

 

Method Summary
 ConfigurableCacheFactory getConfigurableCacheFactory()
          Return the ConfigurableCacheFactory.
 Context.ExtendedContext getExtendedContext()
          Returns the Context.ExtendedContext for this Context.ExtendedContext.
 Context setFactory(ConfigurableCacheFactory ccf)
          Sets the ConfigurableCacheFactory.

 

Constructor Detail

ContainerAdapter.DefaultContext

public ContainerAdapter.DefaultContext(Context context)
Constructor copying from the passed in parameter.
Parameters:
context - the Context to copy from

ContainerAdapter.DefaultContext

public ContainerAdapter.DefaultContext(CacheFactoryBuilder builder,
                                       java.lang.ClassLoader loader,
                                       java.lang.String sAppName,
                                       ConfigurableCacheFactory factory,
                                       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
factory - the ConfigurableCacheFactory
sCacheConfigURI - the cache configuration URI
monitor - the ServiceMonitor to use
sPofConfigURI - the POF configuration URI

Method Detail

getConfigurableCacheFactory

public ConfigurableCacheFactory getConfigurableCacheFactory()
Return the ConfigurableCacheFactory. This method will return the same reference as a call to
    ctx.getExtendedContext().getCacheFactoryBuilder().getConfigurableCacheFactory(ctx.getClassLoader());
 
Specified by:
getConfigurableCacheFactory in interface Context
Returns:
the ConfigurableCacheFactory

getExtendedContext

public Context.ExtendedContext getExtendedContext()
Returns the Context.ExtendedContext for this Context.ExtendedContext.
Specified by:
getExtendedContext in interface Context
Returns:
the Context.ExtendedContext.

setFactory

public Context setFactory(ConfigurableCacheFactory ccf)
Sets the ConfigurableCacheFactory.
Parameters:
ccf - the ConfigurableCacheFactory to set
Returns:
this to allow for a fluent style

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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