Interface FlowModelHolder
- All Known Implementing Classes:
DefaultFlowModelHolder
public interface FlowModelHolder
A holder holding a reference to a Flow model. Provides a layer of indirection, enabling things like "hot-reloadable"
flow models.
- Author:
- Keith Donald, Scott Andrews
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the flow model held by this holder.org.springframework.core.io.ResourceReturns the underlying resource defining the flow model.booleanHas the underlying flow model changed since it was last accessed via a call togetFlowModel().voidrefresh()Refresh the flow model held by this holder.
-
Method Details
-
getFlowModel
FlowModel getFlowModel()Returns the flow model held by this holder. Calling this method the first time may trigger flow model assembly. -
hasFlowModelChanged
boolean hasFlowModelChanged()Has the underlying flow model changed since it was last accessed via a call togetFlowModel().- Returns:
- true if yes, false if not
-
getFlowModelResource
org.springframework.core.io.Resource getFlowModelResource()Returns the underlying resource defining the flow model.- Returns:
- the flow model resource
-
refresh
void refresh()Refresh the flow model held by this holder. Calling this method typically triggers flow re-assembly, which may include a refresh from an externalized resource such as a file.
-