public class BrainslugExecutionContext extends Object implements ExecutionContext
| Constructor and Description |
|---|
BrainslugExecutionContext(FlowInstance flowInstance,
TriggerContext trigger,
Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
FlowInstance |
getInstance() |
FlowInstanceProperties<?,FlowInstanceProperty<?>> |
getProperties() |
TriggerContext |
getTrigger() |
boolean |
isAsync() |
boolean |
isSignaling() |
<T> T |
property(Enum key,
Class<T> clazz) |
<T> T |
property(Identifier key,
Class<T> clazz) |
<T> T |
property(Property<T> key,
Class<T> clazz) |
<T> T |
property(String key,
Class<T> clazz) |
<T> T |
service(Class<T> clazz) |
Object |
service(String serviceName) |
void |
setProperties(FlowInstanceProperties executionProperties) |
void |
setProperty(String key,
Object value) |
public BrainslugExecutionContext(FlowInstance flowInstance, TriggerContext trigger, Registry registry)
public TriggerContext getTrigger()
public FlowInstance getInstance()
getInstance in interface ExecutionContextpublic boolean isAsync()
isAsync in interface ExecutionContextpublic boolean isSignaling()
isSignaling in interface ExecutionContextpublic void setProperty(String key, Object value)
setProperty in interface ExecutionContextpublic void setProperties(FlowInstanceProperties executionProperties)
setProperties in interface ExecutionContextpublic FlowInstanceProperties<?,FlowInstanceProperty<?>> getProperties()
getProperties in interface ExecutionContextpublic <T> T property(Property<T> key, Class<T> clazz)
property in interface ExecutionContextpublic <T> T property(Identifier key, Class<T> clazz)
property in interface ExecutionContextpublic <T> T property(String key, Class<T> clazz)
property in interface ExecutionContextpublic <T> T property(Enum key, Class<T> clazz)
property in interface ExecutionContextpublic <T> T service(Class<T> clazz)
service in interface ExecutionContextpublic Object service(String serviceName)
service in interface ExecutionContextCopyright © 2015. All rights reserved.