| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.engine.builder.BaseFlowServiceLocator
public class BaseFlowServiceLocator
Base implementation that implements a minimal set of the FlowServiceLocator interface, throwing
 unsupported operation exceptions for some operations.
 
May be subclassed to offer additional factory/lookup support.
| Constructor Summary | |
|---|---|
BaseFlowServiceLocator()
 | 
|
| Method Summary | |
|---|---|
protected  void | 
addWebFlowConverters(org.springframework.binding.convert.support.GenericConversionService conversionService)
Add all web flow specific converters to given conversion service.  | 
protected  boolean | 
containsBean(java.lang.String id)
Helper method for determining if the configured bean factory contains the provided bean.  | 
protected  org.springframework.binding.convert.ConversionService | 
createConversionService(org.springframework.binding.convert.ConversionService userConversionService)
Setup a conversion service used by this flow service locator.  | 
 Action | 
getAction(java.lang.String id)
Retrieve an action to be executed within a flow with the assigned id.  | 
 FlowAttributeMapper | 
getAttributeMapper(java.lang.String id)
Returns the flow attribute mapper with the provided id.  | 
protected  java.lang.Object | 
getBean(java.lang.String id,
        java.lang.Class artifactType)
Helper method to lookup the bean representing a flow artifact of the specified type.  | 
 org.springframework.beans.factory.BeanFactory | 
getBeanFactory()
Returns a generic bean (service) registry for accessing arbitrary beans.  | 
 BeanInvokingActionFactory | 
getBeanInvokingActionFactory()
Returns the factory for bean invoking actions.  | 
protected  java.lang.Class | 
getBeanType(java.lang.String id,
            java.lang.Class artifactType)
Helper method to lookup the type of the bean with the provided id.  | 
 org.springframework.binding.convert.ConversionService | 
getConversionService()
Returns a generic type conversion service for converting between types, typically from string to a rich value object.  | 
 FlowExecutionExceptionHandler | 
getExceptionHandler(java.lang.String id)
Returns the exception handler to handle flow execution exceptions with the provided id.  | 
 org.springframework.binding.expression.ExpressionParser | 
getExpressionParser()
Returns the expression parser for parsing expression strings.  | 
 FlowArtifactFactory | 
getFlowArtifactFactory()
Returns the factory for core flow artifacts such as Flow and State.  | 
 org.springframework.core.io.ResourceLoader | 
getResourceLoader()
Returns a generic resource loader for accessing file-based resources.  | 
 Flow | 
getSubflow(java.lang.String id)
Returns the Flow to be used as a subflow with the provided id.  | 
 TargetStateResolver | 
getTargetStateResolver(java.lang.String id)
Returns the transition target state resolver with the specified id.  | 
 TransitionCriteria | 
getTransitionCriteria(java.lang.String id)
Returns the transition criteria to drive state transitions with the provided id.  | 
 ViewSelector | 
getViewSelector(java.lang.String id)
Returns the view selector to make view selections in view states with the provided id.  | 
 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 userConversionService)
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)
Set the resource loader to load file-based resources from string-encoded paths.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public BaseFlowServiceLocator()
| Method Detail | 
|---|
public void setFlowArtifactFactory(FlowArtifactFactory flowArtifactFactory)
flows and
 states.
public void setBeanInvokingActionFactory(BeanInvokingActionFactory beanInvokingActionFactory)
Action
 interface.
public void setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser)
public void setConversionService(org.springframework.binding.convert.ConversionService userConversionService)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
public Flow getSubflow(java.lang.String id)
                throws FlowArtifactLookupException
FlowServiceLocator
getSubflow in interface FlowServiceLocatorid - the flow id
FlowArtifactLookupException - when no such flow is found
public Action getAction(java.lang.String id)
                 throws FlowArtifactLookupException
FlowServiceLocator
getAction in interface FlowServiceLocatorid - the id of the action
FlowArtifactLookupException - when no such action is found
public FlowAttributeMapper getAttributeMapper(java.lang.String id)
                                       throws FlowArtifactLookupException
FlowServiceLocator
getAttributeMapper in interface FlowServiceLocatorid - the attribute mapper id
FlowArtifactLookupException - when no such mapper is found
public TransitionCriteria getTransitionCriteria(java.lang.String id)
                                         throws FlowArtifactLookupException
FlowServiceLocator
getTransitionCriteria in interface FlowServiceLocatorid - the transition criteria id
FlowArtifactLookupException - when no such criteria is found
public TargetStateResolver getTargetStateResolver(java.lang.String id)
                                           throws FlowArtifactLookupException
FlowServiceLocator
getTargetStateResolver in interface FlowServiceLocatorid - the target state resolver id
FlowArtifactLookupException - when no such resolver is found
public ViewSelector getViewSelector(java.lang.String id)
                             throws FlowArtifactLookupException
FlowServiceLocator
getViewSelector in interface FlowServiceLocatorid - the view selector id
FlowArtifactLookupException - when no such selector is found
public FlowExecutionExceptionHandler getExceptionHandler(java.lang.String id)
                                                  throws FlowArtifactLookupException
FlowServiceLocator
getExceptionHandler in interface FlowServiceLocatorid - the exception handler id
FlowArtifactLookupException - when no such handler is foundpublic FlowArtifactFactory getFlowArtifactFactory()
FlowServiceLocator
getFlowArtifactFactory in interface FlowServiceLocatorpublic BeanInvokingActionFactory getBeanInvokingActionFactory()
FlowServiceLocator
getBeanInvokingActionFactory in interface FlowServiceLocator
public org.springframework.beans.factory.BeanFactory getBeanFactory()
                                                             throws java.lang.UnsupportedOperationException
FlowServiceLocator
getBeanFactory in interface FlowServiceLocatorjava.lang.UnsupportedOperationException - when not supported by this locatorpublic org.springframework.core.io.ResourceLoader getResourceLoader()
FlowServiceLocator
getResourceLoader in interface FlowServiceLocatorpublic org.springframework.binding.expression.ExpressionParser getExpressionParser()
FlowServiceLocator
getExpressionParser in interface FlowServiceLocatorpublic org.springframework.binding.convert.ConversionService getConversionService()
FlowServiceLocator
getConversionService in interface FlowServiceLocatorprotected boolean containsBean(java.lang.String id)
id - the id of the bean
protected java.lang.Object getBean(java.lang.String id,
                                   java.lang.Class artifactType)
                            throws FlowArtifactLookupException
id - the bean idartifactType - the bean type
FlowArtifactLookupException - an exception occurred
protected java.lang.Class getBeanType(java.lang.String id,
                                      java.lang.Class artifactType)
                               throws FlowArtifactLookupException
id - the bean idartifactType - the bean type
FlowArtifactLookupException - an exception occurredprotected org.springframework.binding.convert.ConversionService createConversionService(org.springframework.binding.convert.ConversionService userConversionService)
userConversionService - a user supplied conversion service, optional
protected void addWebFlowConverters(org.springframework.binding.convert.support.GenericConversionService conversionService)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||