|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xebialabs.deployit.plugin.cloud.util.ContextHelper
public class ContextHelper
Small utility class to help in standard operations with context
| Method Summary | ||
|---|---|---|
|
safeGet(java.lang.Enum<?> key,
T initialValue)
Enum alias |
|
|
safeGet(java.lang.String key,
T initialValue)
Returns an attribute of the context. |
|
|
safeSet(java.lang.Enum<?> key,
R initialValue,
T values)
Enum alias |
|
|
safeSet(java.lang.String key,
R initialValue,
T values)
Sets adds an element to the collection-like attribute of the context. |
|
static ContextHelper |
wrapped(com.xebialabs.deployit.plugin.api.flow.ExecutionContext context)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ContextHelper wrapped(com.xebialabs.deployit.plugin.api.flow.ExecutionContext context)
public <T> T safeGet(java.lang.String key,
T initialValue)
public <T> T safeGet(java.lang.Enum<?> key,
T initialValue)
public <C,R extends java.util.Collection<C>,T extends java.util.Collection<C>> R safeSet(java.lang.String key,
R initialValue,
T values)
public <C,R extends java.util.Collection<C>,T extends java.util.Collection<C>> R safeSet(java.lang.Enum<?> key,
R initialValue,
T values)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||