|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.engine.builder.BaseFlowServiceLocator
org.springframework.webflow.engine.builder.DefaultFlowServiceLocator
org.springframework.webflow.test.MockFlowServiceLocator
public class MockFlowServiceLocator
A stub flow service locator implementation suitable for a test environment.
Allows programmatic registration of subflows needed by a flow execution being tested, see
registerSubflow(Flow). Subflows registered are typically stubs that verify parent flow input and output
scenarios.
Also supports programmatic registration of additional custom services needed by a flow (such as Actions) managed in a
backing Spring ConfigurableBeanFactory. See the registerBean(String, Object) method. Beans
registered are typically mocks or stubs of business services invoked by the flow.
| Constructor Summary | |
|---|---|
MockFlowServiceLocator()
Creates a new mock flow service locator. |
|
| Method Summary | |
|---|---|
void |
registerBean(java.lang.String beanName,
java.lang.Object bean)
Register a bean in the backing bean factory, typically to support a flow execution test. |
void |
registerSubflow(Flow subflow)
Register a subflow definition in the backing flow registry, typically to support a flow execution test. |
| Methods inherited from class org.springframework.webflow.engine.builder.DefaultFlowServiceLocator |
|---|
getBeanFactory, getSubflow, getSubflowRegistry |
| Methods inherited from class org.springframework.webflow.engine.builder.BaseFlowServiceLocator |
|---|
addWebFlowConverters, containsBean, createConversionService, getAction, getAttributeMapper, getBean, getBeanInvokingActionFactory, getBeanType, getConversionService, getExceptionHandler, getExpressionParser, getFlowArtifactFactory, getResourceLoader, getTargetStateResolver, getTransitionCriteria, getViewSelector, setBeanInvokingActionFactory, setConversionService, setExpressionParser, setFlowArtifactFactory, setResourceLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockFlowServiceLocator()
| Method Detail |
|---|
public void registerSubflow(Flow subflow)
subflow - the subflow
public void registerBean(java.lang.String beanName,
java.lang.Object bean)
beanName - the bean namebean - the singleton instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||