net.sourceforge.basher
Interface ContextManager

All Known Implementing Classes:
ContextManagerImpl

public interface ContextManager

Class for managing contexts registered within the system. A context is defined by the BasherContext class and represents the runtime properties of a performance or testing run.

Version:
$Revision$
Author:
Johan Lindquist

Field Summary
static String DEFAULT_BASHER_CONTEXT_NAME
           
 
Method Summary
 void addBasherContext(BasherContext basherContext)
          Adds the specified context to the system.
 BasherContext getActiveBasherContext()
          Retrieves the currently active context.
 BasherContext getBasherContext(String contextName)
          Retrieves the by name specified context.
 List<BasherContext> getBasherContexts()
          Retrieves the list of all registered contexts.
 void setActiveBasherContext(BasherContext basherContext)
          Sets the specified context to be the active, used context.
 

Field Detail

DEFAULT_BASHER_CONTEXT_NAME

static final String DEFAULT_BASHER_CONTEXT_NAME
See Also:
Constant Field Values
Method Detail

getActiveBasherContext

BasherContext getActiveBasherContext()
Retrieves the currently active context.

Returns:
The active context

setActiveBasherContext

void setActiveBasherContext(BasherContext basherContext)
Sets the specified context to be the active, used context.

Parameters:
basherContext - The context to activate.

getBasherContext

BasherContext getBasherContext(String contextName)
Retrieves the by name specified context.

Parameters:
contextName - The name of the context to retrieve.
Returns:
The specified context or null if not present.

getBasherContexts

List<BasherContext> getBasherContexts()
Retrieves the list of all registered contexts.

Returns:
The list of contexts available.

addBasherContext

void addBasherContext(BasherContext basherContext)
Adds the specified context to the system.

Parameters:
basherContext - The context to add.


Copyright © 2006-2010 Basher Team. All Rights Reserved.