org.springframework.webflow.engine.Flow.create()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中org.springframework.webflow.engine.Flow.create()方法的一些代码示例,展示了Flow.create()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.create()方法的具体详情如下:
包路径:org.springframework.webflow.engine.Flow
类名称:Flow
方法名:create

Flow.create介绍

[英]Create a new flow with the given id and attributes.
[中]创建具有给定id和属性的新流。

代码示例

代码示例来源:origin: org.springframework.webflow/spring-webflow

/**
 * Factory method that creates a new {@link Flow} definition object.
 * <p>
 * Note this method does not return a fully configured Flow instance, it only encapsulates the selection of
 * implementation. A {@link FlowAssembler} delegating to a calling {@link FlowBuilder} is expected to assemble the
 * Flow fully before returning it to external clients.
 * @param id the flow identifier, should be unique to all flows in an application (required)
 * @param attributes attributes to assign to the Flow, which may also be used to affect flow construction; may be
 * null
 * @return the initial flow instance, ready for assembly by a FlowBuilder
 */
public Flow createFlow(String id, AttributeMap<?> attributes) {
  return Flow.create(id, attributes);
}

代码示例来源:origin: org.springframework.webflow/org.springframework.webflow

/**
 * Factory method that creates a new {@link Flow} definition object.
 * <p>
 * Note this method does not return a fully configured Flow instance, it only encapsulates the selection of
 * implementation. A {@link FlowAssembler} delegating to a calling {@link FlowBuilder} is expected to assemble the
 * Flow fully before returning it to external clients.
 * @param id the flow identifier, should be unique to all flows in an application (required)
 * @param attributes attributes to assign to the Flow, which may also be used to affect flow construction; may be
 * null
 * @return the initial flow instance, ready for assembly by a FlowBuilder
 */
public Flow createFlow(String id, AttributeMap attributes) {
  return Flow.create(id, attributes);
}

代码示例来源:origin: spring-projects/spring-webflow

/**
 * Factory method that creates a new {@link Flow} definition object.
 * <p>
 * Note this method does not return a fully configured Flow instance, it only encapsulates the selection of
 * implementation. A {@link FlowAssembler} delegating to a calling {@link FlowBuilder} is expected to assemble the
 * Flow fully before returning it to external clients.
 * @param id the flow identifier, should be unique to all flows in an application (required)
 * @param attributes attributes to assign to the Flow, which may also be used to affect flow construction; may be
 * null
 * @return the initial flow instance, ready for assembly by a FlowBuilder
 */
public Flow createFlow(String id, AttributeMap<?> attributes) {
  return Flow.create(id, attributes);
}

代码示例来源:origin: spring-projects/spring-webflow

public Flow createFlow() throws FlowBuilderException {
    return Flow.create(getContext().getFlowId(), getContext().getFlowAttributes());
  }
};

代码示例来源:origin: spring-projects/spring-webflow

protected Flow createFlow() {
  return Flow.create(getContext().getFlowId(), getContext().getFlowAttributes());
}

相关文章