com.oracle.coherence.patterns.command
Class DefaultContextsManager

java.lang.Object
  extended by com.oracle.coherence.patterns.command.DefaultContextsManager
All Implemented Interfaces:
ContextsManager

public class DefaultContextsManager
extends Object
implements ContextsManager

The default implementation of a ContextsManager.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver
See Also:
ContextsManager

Constructor Summary
DefaultContextsManager()
          Standard Constructor
 
Method Summary
 Object extractValueFromContext(Identifier identifier, com.tangosol.util.ValueExtractor valueExtractor)
          Extracts a value from the most recently updated version of the Context with the provided ValueExtractor.
 Context getContext(Identifier identifier)
          Returns the most recent updated version of the Context with the specified Identifier.
static ContextsManager getInstance()
          Returns an instance of the DefaultContextsManager.
 Identifier registerContext(Context context)
          Registers a Context using a DefaultContextConfiguration.
 Identifier registerContext(Context context, ContextConfiguration contextConfiguration)
          Registers a Context with a specified ContextConfiguration.
 Identifier registerContext(Identifier contextIdentifier, Context context)
          Registers a Context with the specified Identifier using a DefaultContextConfiguration.
 Identifier registerContext(Identifier contextIdentifier, Context context, ContextConfiguration contextConfiguration)
          Registers a Context with the specified Identifier and ContextConfiguration.
 Identifier registerContext(String contextName, Context context)
          Registers a Context with the specified contextName using a DefaultContextConfiguration.
 Identifier registerContext(String contextName, Context context, ContextConfiguration contextConfiguration)
          Registers a Context with the specified contextName and ContextConfiguration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContextsManager

public DefaultContextsManager()
Standard Constructor

Method Detail

registerContext

public Identifier registerContext(Identifier contextIdentifier,
                                  Context context,
                                  ContextConfiguration contextConfiguration)
Registers a Context with the specified Identifier and ContextConfiguration.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Specified by:
registerContext in interface ContextsManager

registerContext

public Identifier registerContext(Identifier contextIdentifier,
                                  Context context)
Registers a Context with the specified Identifier using a DefaultContextConfiguration.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Specified by:
registerContext in interface ContextsManager

registerContext

public Identifier registerContext(String contextName,
                                  Context context,
                                  ContextConfiguration contextConfiguration)
Registers a Context with the specified contextName and ContextConfiguration.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Specified by:
registerContext in interface ContextsManager

registerContext

public Identifier registerContext(String contextName,
                                  Context context)
Registers a Context with the specified contextName using a DefaultContextConfiguration. The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Specified by:
registerContext in interface ContextsManager

registerContext

public Identifier registerContext(Context context,
                                  ContextConfiguration contextConfiguration)
Registers a Context with a specified ContextConfiguration.

NOTE: A unique Identifier will be generated for the Context.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Specified by:
registerContext in interface ContextsManager

registerContext

public Identifier registerContext(Context context)
Registers a Context using a DefaultContextConfiguration.

NOTE: A unique Identifier will be generated for the Context.

The returned Identifier may then be used to manage the Context, including submitting Commands for execution.

Specified by:
registerContext in interface ContextsManager

getContext

public Context getContext(Identifier identifier)
Returns the most recent updated version of the Context with the specified Identifier.

Specified by:
getContext in interface ContextsManager

extractValueFromContext

public Object extractValueFromContext(Identifier identifier,
                                      com.tangosol.util.ValueExtractor valueExtractor)
Extracts a value from the most recently updated version of the Context with the provided ValueExtractor.

Specified by:
extractValueFromContext in interface ContextsManager

getInstance

public static ContextsManager getInstance()
Returns an instance of the DefaultContextsManager.



Copyright © 2016. All rights reserved.