com.ibm.websphere.fabric.da.context
Class Context

java.lang.Object
  extended by com.ibm.websphere.fabric.da.context.Context
All Implemented Interfaces:
java.io.Serializable

public abstract class Context
extends java.lang.Object
implements java.io.Serializable

Abstraction for recording salient aspects of the context within which a service is being invoked.

Author:
msanchez
See Also:
Serialized Form

Constructor Summary
Context()
           
 
Method Summary
abstract  java.io.Serializable getContextIdentifier()
          Returns the unique identifier associated with this context.
abstract  TypedValue getSelectionProperty(java.lang.String name)
          Looks up the value associated with the property name supplied.
abstract  java.util.Set getSelectionPropertyNames()
           
abstract  void setSelectionProperty(java.lang.String name, TypedValue value)
          Associates the value supplied with the property name specified.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Context

public Context()
Method Detail

getContextIdentifier

public abstract java.io.Serializable getContextIdentifier()
Returns the unique identifier associated with this context. As contexts are mutable, capturing merely the identifier of a context does not provide enough details for auditing or debugging. However, the identifier can be shared by various processes and components to lookup the current state of the context.

Returns:
non-null identifier.

getSelectionPropertyNames

public abstract java.util.Set getSelectionPropertyNames()
Returns:
non-null possibly empty read-only set of non-null String property names.

getSelectionProperty

public abstract TypedValue getSelectionProperty(java.lang.String name)
Looks up the value associated with the property name supplied.

Parameters:
name - non-null name of property.
Returns:
the currently associated value, null if this property has not been set within this context (or it's ancenstral super contexts).

setSelectionProperty

public abstract void setSelectionProperty(java.lang.String name,
                                          TypedValue value)
Associates the value supplied with the property name specified.

Parameters:
name - non-null property name.
value - non-null value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2009 IBM. All Rights Reserved.