public interface FlowDefinitionHolder
FlowDefinitionRegistry.registerFlowDefinition(FlowDefinitionHolder)
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Indicates that the system is being shutdown and any resources flow resources should be released.
|
FlowDefinition |
getFlowDefinition()
Returns the flow definition held by this holder.
|
java.lang.String |
getFlowDefinitionId()
Returns the
id of the flow definition held by this holder. |
java.lang.String |
getFlowDefinitionResourceString()
Returns a descriptive string that identifies the source of this FlowDefinition.
|
void |
refresh()
Refresh the flow definition held by this holder.
|
java.lang.String getFlowDefinitionId()
id
of the flow definition held by this holder. This is a lightweight method
callers may call to obtain the id of the flow without triggering full flow definition assembly (which may be an
expensive operation).java.lang.String getFlowDefinitionResourceString()
FlowDefinition getFlowDefinition() throws FlowDefinitionConstructionException
FlowDefinitionConstructionException
- if there is a problem constructing the target flow definitionvoid refresh() throws FlowDefinitionConstructionException
FlowDefinitionConstructionException
- if there is a problem constructing the target flow definitionvoid destroy()
getFlowDefinition()
are undefined. Should only be called once. May be a no-op
if the held flow was never constructed to begin with.