public class CompensationScope extends ExceptionScope
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPENSATION_SCOPE |
static String |
IMPLICIT_COMPENSATION_PREFIX |
EXCEPTION_SCOPE, exceptionHandlers| Constructor and Description |
|---|
CompensationScope() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextContainerId() |
ExceptionHandler |
getExceptionHandler(String exception) |
String |
getType() |
Context |
resolveContext(Object activityRefStr)
Resolves in one of two cases: when the (String) activityRefStr is equal to:
1. the id of an activity that has a compensation handler.
|
void |
setContextContainer(ContextContainer contextContainer) |
getExceptionHandlers, removeExceptionHandler, setExceptionHandler, setExceptionHandlersgetContextContainer, getId, setIdpublic static final String COMPENSATION_SCOPE
public static final String IMPLICIT_COMPENSATION_PREFIX
public String getType()
getType in interface ContextgetType in class ExceptionScopepublic void setContextContainer(ContextContainer contextContainer)
setContextContainer in class AbstractContextpublic String getContextContainerId()
public ExceptionHandler getExceptionHandler(String exception)
getExceptionHandler in class ExceptionScopepublic Context resolveContext(Object activityRefStr)
resolveContext in interface ContextresolveContext in class ExceptionScopeCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.