Class AbstractFlowElementInvoker<T>
- java.lang.Object
-
- org.ikasan.flow.visitorPattern.invoker.AbstractFlowElementInvoker<T>
-
- All Implemented Interfaces:
org.ikasan.spec.configuration.Configured<T>,org.ikasan.spec.configuration.ConfiguredResource<T>
- Direct Known Subclasses:
BrokerFlowElementInvoker,ConcurrentSplitterFlowElementInvoker,ConsumerFlowElementInvoker,ConverterFlowElementInvoker,FilterFlowElementInvoker,MultiRecipientRouterFlowElementInvoker,ProducerFlowElementInvoker,SequencerFlowElementInvoker,SingleRecipientRouterFlowElementInvoker,SplitterFlowElementInvoker,TranslatorFlowElementInvoker
public abstract class AbstractFlowElementInvoker<T> extends java.lang.Object implements org.ikasan.spec.configuration.ConfiguredResource<T>An abstract implementation of the FlowElementInvoker- Author:
- Ikasan Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected Tconfigurationconfiguration instanceprotected java.lang.StringconfiguredResourceIdconfiguration idprotected java.util.List<org.ikasan.spec.flow.FlowInvocationContextListener>flowInvocationContextListenersprotected java.lang.BooleanignoreContextInvocationprotected booleaninvokeContextListenersflag to control invocation of the context listeners at runtime, defaults to true
-
Constructor Summary
Constructors Constructor Description AbstractFlowElementInvoker(T configuration)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetConfiguration()java.lang.StringgetConfiguredResourceId()protected voidnotifyFlowInvocationContextListenersSnapEvent(org.ikasan.spec.flow.FlowElement flowElement, org.ikasan.spec.flow.FlowEvent flowEvent)Notify any FlowInvocationContextListeners that to snap an eventvoidsetConfiguration(T configuration)voidsetConfiguredResourceId(java.lang.String configuredResourceId)voidsetFlowInvocationContextListeners(java.util.List<org.ikasan.spec.flow.FlowInvocationContextListener> flowInvocationContextListeners)voidsetIgnoreContextInvocation(boolean ignoreContextInvocation)voidsetInvokeContextListeners(boolean invokeContextListeners)
-
-
-
Field Detail
-
ignoreContextInvocation
protected java.lang.Boolean ignoreContextInvocation
-
flowInvocationContextListeners
protected java.util.List<org.ikasan.spec.flow.FlowInvocationContextListener> flowInvocationContextListeners
-
invokeContextListeners
protected volatile boolean invokeContextListeners
flag to control invocation of the context listeners at runtime, defaults to true
-
configuredResourceId
protected java.lang.String configuredResourceId
configuration id
-
configuration
protected T configuration
configuration instance
-
-
Constructor Detail
-
AbstractFlowElementInvoker
public AbstractFlowElementInvoker(T configuration)
Constructor- Parameters:
configuration-
-
-
Method Detail
-
notifyFlowInvocationContextListenersSnapEvent
protected void notifyFlowInvocationContextListenersSnapEvent(org.ikasan.spec.flow.FlowElement flowElement, org.ikasan.spec.flow.FlowEvent flowEvent)Notify any FlowInvocationContextListeners that to snap an event
-
setIgnoreContextInvocation
public void setIgnoreContextInvocation(boolean ignoreContextInvocation)
-
setFlowInvocationContextListeners
public void setFlowInvocationContextListeners(java.util.List<org.ikasan.spec.flow.FlowInvocationContextListener> flowInvocationContextListeners)
-
setInvokeContextListeners
public void setInvokeContextListeners(boolean invokeContextListeners)
-
getConfiguredResourceId
public java.lang.String getConfiguredResourceId()
- Specified by:
getConfiguredResourceIdin interfaceorg.ikasan.spec.configuration.ConfiguredResource<T>
-
setConfiguredResourceId
public void setConfiguredResourceId(java.lang.String configuredResourceId)
- Specified by:
setConfiguredResourceIdin interfaceorg.ikasan.spec.configuration.ConfiguredResource<T>
-
getConfiguration
public T getConfiguration()
- Specified by:
getConfigurationin interfaceorg.ikasan.spec.configuration.Configured<T>
-
-