org.springframework.batch.core.configuration.xml
Class SimpleFlowFactoryBean

java.lang.Object
  extended by org.springframework.batch.core.configuration.xml.SimpleFlowFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class SimpleFlowFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

Convenience factory for SimpleFlow instances for use in XML namespace. It replaces the states in the input with proxies that have a unique name formed from the flow name and the original state name (unless the name is already in that form, in which case it is not modified).

Author:
Dave Syer

Constructor Summary
SimpleFlowFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          Check mandatory properties (name).
 Object getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setName(String name)
          The name of the flow that is created by this factory.
 void setStateTransitions(List<StateTransition> stateTransitions)
          The raw state transitions for the flow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFlowFactoryBean

public SimpleFlowFactoryBean()
Method Detail

setName

public void setName(String name)
The name of the flow that is created by this factory.

Parameters:
name - the value of the name

setStateTransitions

public void setStateTransitions(List<StateTransition> stateTransitions)
The raw state transitions for the flow. They will be transformed into proxies that have the same behaviour but unique names prefixed with the flow name.

Parameters:
name - the value of the name

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Check mandatory properties (name).

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean


Copyright © 2012. All Rights Reserved.