An execution context is expected to be on the stack for the duration of the connection.
| Modifier and Type | Field and Description |
|---|---|
| private ExecutionFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanupOnError(Throwable
The original error error)Implements org. Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action. |
| public ExecutionFactory | getExecutionFactory()
Implements org. Get the ExecutionFactory from this ExecutionContext. |
| execFactory | back to summary |
|---|---|
| private ExecutionFactory execFactory | |
| GenericExecutionContext | back to summary |
|---|---|
| pack-priv GenericExecutionContext(ContextManager cm, ExecutionFactory ef) | |
| cleanupOnError | back to summary |
|---|---|
| public void cleanupOnError(Throwable error) throws StandardException Implements org. Doc from org. Contexts will be passed errors that are caught
by the outer system when they are serious enough
to require corrective action. They will be told
what the error is, so that they can react appropriately.
Most of the time, the contexts will react by either
doing nothing or by removing themselves from the
context manager. If there are no other references
to the context, removing itself from the manager
equates to freeing it.
Contexts must release all their resources before removing themselves from their context manager. The context manager will "unwind" the contexts during cleanup in the reverse order they were placed on its global stack. If error is an instance of StandardException then an implementation of this method may throw a new exception if and only if the new exception is an instance of StandardException that is more severe than the original error or the new exception is a not an instance of StandardException (e.g java.lang.NullPointerException).
| |
| getExecutionFactory | back to summary |
|---|---|
| public ExecutionFactory getExecutionFactory() Implements org. Doc from org. Get the ExecutionFactory from this ExecutionContext.
| |