public class OutcomeMap extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,Object> |
outcomes |
protected OutcomeResolver<OutcomeMap> |
router |
| Constructor and Description |
|---|
OutcomeMap(OutcomeResolver<OutcomeMap> router) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getOutcome(Class<T> type) |
boolean |
isAvailable(Class<?> outcomeType) |
<T> void |
pushOutcome(Class<T> type,
T value) |
<T> void |
pushOutcome(T outcome) |
<T> T |
resolveOutcome(Class<T> type) |
protected final OutcomeResolver<OutcomeMap> router
public OutcomeMap(OutcomeResolver<OutcomeMap> router)
public <T> T resolveOutcome(Class<T> type) throws AppCreatorException
AppCreatorExceptionpublic boolean isAvailable(Class<?> outcomeType)
public <T> T getOutcome(Class<T> type)
public <T> void pushOutcome(T outcome)
throws AppCreatorException
AppCreatorExceptionpublic <T> void pushOutcome(Class<T> type, T value) throws AppCreatorException
AppCreatorExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.