public class DefaultFlowModelHolder extends java.lang.Object implements FlowModelHolder
This class is thread-safe.
Note that this FlowModel
holder uses a FlowModelBuilder
.
FlowModel
Constructor and Description |
---|
DefaultFlowModelHolder(FlowModelBuilder flowModelBuilder)
Creates a new refreshable flow model holder that uses the configured assembler (GOF director) to drive flow
assembly, on initial use and on any resource change or refresh.
|
Modifier and Type | Method and Description |
---|---|
FlowModel |
getFlowModel()
Returns the flow model held by this holder.
|
org.springframework.core.io.Resource |
getFlowModelResource()
Returns the underlying resource defining the flow model.
|
boolean |
hasFlowModelChanged()
Has the underlying flow model changed since it was last accessed via a call to
FlowModelHolder.getFlowModel() . |
void |
refresh()
Refresh the flow model held by this holder.
|
java.lang.String |
toString() |
public DefaultFlowModelHolder(FlowModelBuilder flowModelBuilder)
flowModelBuilder
- the flow model builder to usepublic FlowModel getFlowModel()
FlowModelHolder
getFlowModel
in interface FlowModelHolder
public org.springframework.core.io.Resource getFlowModelResource()
FlowModelHolder
getFlowModelResource
in interface FlowModelHolder
public boolean hasFlowModelChanged()
FlowModelHolder
FlowModelHolder.getFlowModel()
.hasFlowModelChanged
in interface FlowModelHolder
public void refresh()
FlowModelHolder
refresh
in interface FlowModelHolder
public java.lang.String toString()
toString
in class java.lang.Object