本文整理了Java中org.springframework.webflow.engine.Flow.getApplicationContext()
方法的一些代码示例,展示了Flow.getApplicationContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.getApplicationContext()
方法的具体详情如下:
包路径:org.springframework.webflow.engine.Flow
类名称:Flow
方法名:getApplicationContext
暂无
代码示例来源:origin: org.springframework.webflow/spring-webflow
private ViewVariable parseViewVariable(VarModel var) {
Class<?> clazz = toClass(var.getClassName());
VariableValueFactory valueFactory = new BeanFactoryVariableValueFactory(clazz, getFlow()
.getApplicationContext().getAutowireCapableBeanFactory());
return new ViewVariable(var.getName(), valueFactory);
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
private FlowVariable parseFlowVariable(VarModel var) {
Class<?> clazz = toClass(var.getClassName());
VariableValueFactory valueFactory = new BeanFactoryVariableValueFactory(clazz, getFlow()
.getApplicationContext().getAutowireCapableBeanFactory());
return new FlowVariable(var.getName(), valueFactory);
}
代码示例来源:origin: org.springframework.webflow/spring-webflow
MessageContext messageContext = createMessageContext(activeFlow.getApplicationContext());
RequestControlContext requestContext = createRequestContext(externalContext, messageContext);
RequestContextHolder.setRequestContext(requestContext);
代码示例来源:origin: org.springframework.webflow/spring-webflow
void start(Flow flow, MutableAttributeMap<?> input, RequestControlContext context) {
listeners.fireSessionCreating(context, flow);
FlowSessionImpl session = activateSession(flow);
if (session.isRoot()) {
status = FlowExecutionStatus.ACTIVE;
}
if (input == null) {
input = new LocalAttributeMap<>();
}
if (hasEmbeddedModeAttribute(input)) {
session.setEmbeddedMode();
}
StateManageableMessageContext messageContext = (StateManageableMessageContext) context.getMessageContext();
messageContext.setMessageSource(flow.getApplicationContext());
listeners.fireSessionStarting(context, session, input);
flow.start(context, input);
listeners.fireSessionStarted(context, session);
}
代码示例来源:origin: spring-projects/spring-webflow
private FlowVariable parseFlowVariable(VarModel var) {
Class<?> clazz = toClass(var.getClassName());
VariableValueFactory valueFactory = new BeanFactoryVariableValueFactory(clazz, getFlow()
.getApplicationContext().getAutowireCapableBeanFactory());
return new FlowVariable(var.getName(), valueFactory);
}
代码示例来源:origin: spring-projects/spring-webflow
private ViewVariable parseViewVariable(VarModel var) {
Class<?> clazz = toClass(var.getClassName());
VariableValueFactory valueFactory = new BeanFactoryVariableValueFactory(clazz, getFlow()
.getApplicationContext().getAutowireCapableBeanFactory());
return new ViewVariable(var.getName(), valueFactory);
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
private FlowVariable parseFlowVariable(VarModel var) {
Class clazz = toClass(var.getClassName());
VariableValueFactory valueFactory = new BeanFactoryVariableValueFactory(clazz, getFlow()
.getApplicationContext().getAutowireCapableBeanFactory());
return new FlowVariable(var.getName(), valueFactory);
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
private ViewVariable parseViewVariable(VarModel var) {
Class clazz = toClass(var.getClassName());
VariableValueFactory valueFactory = new BeanFactoryVariableValueFactory(clazz, getFlow()
.getApplicationContext().getAutowireCapableBeanFactory());
return new ViewVariable(var.getName(), valueFactory);
}
代码示例来源:origin: spring-projects/spring-webflow
public void testResourceBackedFlowBuilderWithMessages() {
ClassPathResource resource = new ClassPathResource("resources/flow.xml", FlowModelFlowBuilderTests.class);
Flow flow = getFlow(resource);
assertNotNull(flow.getApplicationContext());
assertEquals("bar", flow.getApplicationContext().getMessage("foo", null, null));
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
void start(Flow flow, MutableAttributeMap input, RequestControlContext context) {
listeners.fireSessionCreating(context, flow);
FlowSession session = activateSession(flow);
if (input == null) {
input = new LocalAttributeMap();
}
StateManageableMessageContext messageContext = (StateManageableMessageContext) context.getMessageContext();
messageContext.setMessageSource(flow.getApplicationContext());
listeners.fireSessionStarting(context, session, input);
flow.start(context, input);
listeners.fireSessionStarted(context, session);
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
MessageContext messageContext = createMessageContext(activeFlow.getApplicationContext());
RequestControlContext requestContext = createRequestContext(externalContext, messageContext);
RequestContextHolder.setRequestContext(requestContext);
代码示例来源:origin: spring-projects/spring-webflow
MessageContext messageContext = createMessageContext(activeFlow.getApplicationContext());
RequestControlContext requestContext = createRequestContext(externalContext, messageContext);
RequestContextHolder.setRequestContext(requestContext);
代码示例来源:origin: spring-projects/spring-webflow
void start(Flow flow, MutableAttributeMap<?> input, RequestControlContext context) {
listeners.fireSessionCreating(context, flow);
FlowSessionImpl session = activateSession(flow);
if (session.isRoot()) {
status = FlowExecutionStatus.ACTIVE;
}
if (input == null) {
input = new LocalAttributeMap<>();
}
if (hasEmbeddedModeAttribute(input)) {
session.setEmbeddedMode();
}
StateManageableMessageContext messageContext = (StateManageableMessageContext) context.getMessageContext();
messageContext.setMessageSource(flow.getApplicationContext());
listeners.fireSessionStarting(context, session, input);
flow.start(context, input);
listeners.fireSessionStarted(context, session);
}
代码示例来源:origin: spring-projects/spring-webflow
FormAction action = (FormAction) flow.getApplicationContext().getBean("formAction");
assertFalse(((TestBeanValidator) action.getValidator()).getInvoked());
execution.start(null, new MockExternalContext());
内容来源于网络,如有侵权,请联系作者删除!