org.oddjob.monitor.context
Interface ExplorerContext

All Known Implementing Classes:
ExplorerContextImpl

public interface ExplorerContext

Explorer Context. Used to pass useful things down the job hierarchy.

A unique context will exist for each node in the hierarchy but where as the model has specific information about the node in the tree - it's children, is it visible etc, the context contains ancillary information about the nodes environment.

Author:
Rob Gordon

Method Summary
 ExplorerContext addChild(Object child)
          Add a child context.
 ExplorerContext getParent()
          Get the parent context of this context.
 Object getThisComponent()
          Get the component this is the context for.
 ThreadManager getThreadManager()
           
 Object getValue(String key)
          Get a value from the context.
 void setValue(String key, Object value)
          Set a value in the context.
 

Method Detail

getThisComponent

Object getThisComponent()
Get the component this is the context for.

Returns:

addChild

ExplorerContext addChild(Object child)
Add a child context.

Parameters:
child - The component the child is for.
Returns:
A child context for the component.

getThreadManager

ThreadManager getThreadManager()

getParent

ExplorerContext getParent()
Get the parent context of this context.

Returns:
The parent, or null if this is the root.

setValue

void setValue(String key,
              Object value)
Set a value in the context.

Parameters:
key - An identifier for the value.
value - The value.

getValue

Object getValue(String key)
Get a value from the context.

Parameters:
key - The identifier.
Returns:
The value, or null.