use of org.springframework.webflow.execution.factory.StaticFlowExecutionListenerLoader in project cas by apereo.
the class WebflowExecutorFactory method buildFlowExecutorViaServerSessionBindingExecution.
private FlowExecutor buildFlowExecutorViaServerSessionBindingExecution() {
val conversationManager = new SessionBindingConversationManager();
val session = webflowProperties.getSession();
conversationManager.setLockTimeoutSeconds((int) Beans.newDuration(session.getLockTimeout()).getSeconds());
conversationManager.setMaxConversations(session.getMaxConversations());
val executionFactory = new FlowExecutionImplFactory();
executionFactory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader(executionListeners));
val flowExecutionSnapshotFactory = new SerializedFlowExecutionSnapshotFactory(executionFactory, this.flowDefinitionRegistry);
flowExecutionSnapshotFactory.setCompress(session.isCompress());
val repository = new DefaultFlowExecutionRepository(conversationManager, flowExecutionSnapshotFactory);
executionFactory.setExecutionKeyFactory(repository);
return new FlowExecutorImpl(this.flowDefinitionRegistry, executionFactory, repository);
}
use of org.springframework.webflow.execution.factory.StaticFlowExecutionListenerLoader in project cas by apereo.
the class WebflowExecutorFactory method buildFlowExecutorViaClientFlowExecution.
private FlowExecutor buildFlowExecutorViaClientFlowExecution() {
val repository = new ClientFlowExecutionRepository();
repository.setFlowDefinitionLocator(this.flowDefinitionRegistry);
repository.setTranscoder(getWebflowStateTranscoder());
val factory = new FlowExecutionImplFactory();
factory.setExecutionKeyFactory(repository);
factory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader());
repository.setFlowExecutionFactory(factory);
factory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader(executionListeners));
return new FlowExecutorImpl(this.flowDefinitionRegistry, factory, repository);
}
Aggregations