- 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>commandsprotected ArrayList<ICommand>globalCommandsprotected ExceptionlastExceptionprotected ICommandlastExecutedCommandprotected PluginManagerloaderstatic LoggerloggerShared 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 voidaddGlobalCommandsToContext()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 contextPluginManagergetPluginManager()-
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
-
-