org.oddjob.monitor.model
Class ConfigContextSearch

java.lang.Object
  extended by org.oddjob.monitor.model.ConfigContextSearch

public class ConfigContextSearch
extends Object

Provides an ExplorerContext search for Edit Actions and Design Actions.

Author:
rob

Constructor Summary
ConfigContextSearch()
           
 
Method Summary
 DragPoint dragPointFor(ExplorerContext context)
          Provide the appropriate DragPoint.
 ConfigurationSession sessionFor(ExplorerContext context)
          Find the appropriate configuration session.
 ConfigurationSession sessionForAddJob(ExplorerContext context)
          Find the configuration session for add job which will include the configuration session for the current component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigContextSearch

public ConfigContextSearch()
Method Detail

sessionFor

public ConfigurationSession sessionFor(ExplorerContext context)
Find the appropriate configuration session.

Parameters:
context - The context. Must not be null.
Returns:
The session, or null if one can't be found for the current context. This will be the case for an Oddjob that hasn't been loaded, for instance.

sessionForAddJob

public ConfigurationSession sessionForAddJob(ExplorerContext context)
Find the configuration session for add job which will include the configuration session for the current component.

Parameters:
context - The context. Must not be null.
Returns:
The session, or null if one can't be found. This is unlikely for add job.

dragPointFor

public DragPoint dragPointFor(ExplorerContext context)
Provide the appropriate DragPoint.

Parameters:
context -
Returns: