/** * Provides an extension point to provide alternative {@link StepState} * implementations within a {@link SimpleFlow} * * @param state The state that will be used to create the StepState * @param oldName The name to be replaced * @param stateName The name for the new State * @return a state for the requested data */ protected State createNewStepState(State state, String oldName, String stateName) { return new StepState(stateName, ((StepState) state).getStep(oldName)); }
/** * Provides an extension point to provide alternative {@link StepState} * implementations within a {@link SimpleFlow} * * @param state The state that will be used to create the StepState * @param oldName The name to be replaced * @param stateName The name for the new State * @return a state for the requested data */ protected State createNewStepState(State state, String oldName, String stateName) { return new StepState(stateName, ((StepState) state).getStep(oldName)); }
/** * Provides an extension point to provide alternative {@link StepState} * implementations within a {@link SimpleFlow} * * @param state The state that will be used to create the StepState * @param oldName The name to be replaced * @param stateName The name for the new State * @return */ protected State createNewStepState(State state, String oldName, String stateName) { return new StepState(stateName, ((StepState) state).getStep(oldName)); }
/** * Provides an extension point to provide alternative {@link StepState} * implementations within a {@link SimpleFlow} * * @param state The state that will be used to create the StepState * @param oldName The name to be replaced * @param stateName The name for the new State * @return a state for the requested data */ protected State createNewStepState(State state, String oldName, String stateName) { return new StepState(stateName, ((StepState) state).getStep(oldName)); }
/** * Convenience method to get a state that proxies the input but with a * different name, appropriate to this flow. If the state is a StepState * then the step name is also changed. * * @param state * @return */ private State getProxyState(State state) { String oldName = state.getName(); if (oldName.startsWith(prefix)) { return state; } String stateName = prefix + oldName; if (state instanceof StepState) { return new StepState(stateName, ((StepState) state).getStep()); } return new DelegateState(stateName, state); }