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, setExceptionHandlers
getContextContainer, getId, setId
public static final String COMPENSATION_SCOPE
public static final String IMPLICIT_COMPENSATION_PREFIX
public String getType()
getType
in interface Context
getType
in class ExceptionScope
public void setContextContainer(ContextContainer contextContainer)
setContextContainer
in class AbstractContext
public String getContextContainerId()
public ExceptionHandler getExceptionHandler(String exception)
getExceptionHandler
in class ExceptionScope
public Context resolveContext(Object activityRefStr)
resolveContext
in interface Context
resolveContext
in class ExceptionScope
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.