|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.definition.registry.AbstractFlowDefinitionRegistryFactoryBean
org.springframework.webflow.engine.builder.AbstractFlowBuildingFlowRegistryFactoryBean
public abstract class AbstractFlowBuildingFlowRegistryFactoryBean
A base class for factory beans that create populated registries of flow definitions built using a FlowBuilder
,
typically a BaseFlowBuilder
subclass. This base class will setup a FlowServiceLocator
for use by the
flow builder.
Subclasses should override the doPopulate(FlowDefinitionRegistry)
template method to perform the registry
population logic, typically delegating to a
FlowDefinitionRegistrar
strategy.
FlowDefinitionRegistry
,
FlowDefinitionRegistrar
Constructor Summary | |
---|---|
AbstractFlowBuildingFlowRegistryFactoryBean()
|
Method Summary | |
---|---|
protected FlowServiceLocator |
createFlowServiceLocator()
Factory method for creating the service locator used to locate webflow services during flow assembly. |
protected abstract void |
doPopulate(FlowDefinitionRegistry registry)
Template method subclasses must override to perform registry population. |
protected org.springframework.beans.factory.BeanFactory |
getBeanFactory()
Returns the bean factory managing this bean. |
protected BeanInvokingActionFactory |
getBeanInvokingActionFactory()
Returns the factory for creating bean invoking actions, actions that adapt methods on objects to the Action interface. |
protected org.springframework.binding.convert.ConversionService |
getConversionService()
Returns the conversion service to use to convert between types; typically from string to a rich object type. |
protected org.springframework.binding.expression.ExpressionParser |
getExpressionParser()
Returns the expression parser responsible for parsing expression strings into evaluatable expression objects. |
protected FlowArtifactFactory |
getFlowArtifactFactory()
Returns the factory encapsulating the creation of central Flow artifacts such as flows and
states . |
protected FlowServiceLocator |
getFlowServiceLocator()
Returns the strategy for locating dependent artifacts when a flow is being built. |
protected org.springframework.core.io.ResourceLoader |
getResourceLoader()
Returns the injected resource loader. |
protected void |
init()
Template method subclasses may override to perform factory bean initialization logic before registry population. |
protected void |
init(FlowServiceLocator flowServiceLocator)
Called after properties have been set on the service locator, but before registry population. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setBeanInvokingActionFactory(BeanInvokingActionFactory beanInvokingActionFactory)
Sets the factory for creating bean invoking actions, actions that adapt methods on objects to the Action
interface. |
void |
setConversionService(org.springframework.binding.convert.ConversionService conversionService)
Set the conversion service to use to convert between types; typically from string to a rich object type. |
void |
setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser)
Set the expression parser responsible for parsing expression strings into evaluatable expression objects. |
void |
setFlowArtifactFactory(FlowArtifactFactory flowArtifactFactory)
Sets the factory encapsulating the creation of central Flow artifacts such as flows and
states . |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
|
Methods inherited from class org.springframework.webflow.definition.registry.AbstractFlowDefinitionRegistryFactoryBean |
---|
afterPropertiesSet, createFlowDefinitionRegistry, getObject, getObjectType, getRegistry, isSingleton, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFlowBuildingFlowRegistryFactoryBean()
Method Detail |
---|
protected FlowArtifactFactory getFlowArtifactFactory()
flows
and
states
.
public void setFlowArtifactFactory(FlowArtifactFactory flowArtifactFactory)
flows
and
states
.
protected BeanInvokingActionFactory getBeanInvokingActionFactory()
Action
interface.
public void setBeanInvokingActionFactory(BeanInvokingActionFactory beanInvokingActionFactory)
Action
interface.
protected org.springframework.binding.expression.ExpressionParser getExpressionParser()
public void setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser)
protected org.springframework.binding.convert.ConversionService getConversionService()
public void setConversionService(org.springframework.binding.convert.ConversionService conversionService)
protected org.springframework.core.io.ResourceLoader getResourceLoader()
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
protected final void init()
AbstractFlowDefinitionRegistryFactoryBean
AbstractFlowDefinitionRegistryFactoryBean.doPopulate(FlowDefinitionRegistry)
. The default implementation is empty.
init
in class AbstractFlowDefinitionRegistryFactoryBean
protected FlowServiceLocator createFlowServiceLocator()
protected void init(FlowServiceLocator flowServiceLocator)
flowServiceLocator
- the flow service locator to use to locate externally managed services needed during
flow building and assembly, typically used by a
FlowDefinitionRegistrar
protected FlowServiceLocator getFlowServiceLocator()
registry population
to wire in the service locator needed for
flow assembly.
protected abstract void doPopulate(FlowDefinitionRegistry registry)
AbstractFlowDefinitionRegistryFactoryBean
doPopulate
in class AbstractFlowDefinitionRegistryFactoryBean
registry
- the flow definition registry to populate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |