- java.lang.Object
-
- com.ibm.java.diagnostics.utils.Context
-
- All Implemented Interfaces:
IContext
- Direct Known Subclasses:
DTFJContext
public abstract class Context extends Object implements IContext
A context represents the environment within which a command is executing. This abstract class provides common functionality which is required by all types of context.
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayList<ICommand>
commands
protected ArrayList<ICommand>
globalCommands
protected Exception
lastException
protected ICommand
lastExecutedCommand
protected PluginManager
loader
static Logger
logger
Shared logger for all commands to write to
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addGlobalCommandsToContext()
This adds the list of global commands which are applicable for any context to this specific context instanceVector<String>
getCommandNames()
List of all the command names that are available within this contextPluginManager
getPluginManager()
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.java.diagnostics.utils.IContext
execute, execute, execute, getCommands, getLastCommandException, getLastExecutedCommand, getPluginClassloader, getProperties, isCommandRecognised, refresh
-
-
-
-
Field Detail
-
lastExecutedCommand
protected ICommand lastExecutedCommand
-
lastException
protected Exception lastException
-
logger
public static final Logger logger
Shared logger for all commands to write to
-
loader
protected PluginManager loader
-
-
Method Detail
-
getPluginManager
public PluginManager getPluginManager()
-
getCommandNames
public Vector<String> getCommandNames()
List of all the command names that are available within this context- Returns:
- list of names
-
addGlobalCommandsToContext
protected void addGlobalCommandsToContext()
This adds the list of global commands which are applicable for any context to this specific context instance
-
-