| java.lang.Object com.opensymphony.workflow.spi.hibernate.SpringBeanNameWorkflowFactory
SpringBeanNameWorkflowFactory | public class SpringBeanNameWorkflowFactory implements WorkflowFactory,ApplicationContextAware(Code) | | Spring-compliant implementation of
com.opensymphony.workflow.loader.AbstractWorkflowFactory . This
workflow factory retrieves
com.opensymphony.workflow.loader.WorkflowDescriptor s from the Spring's
ApplicationContext . The name of the WorkflowDescriptors is the name
of the bean in the applicationContext.
Motivation: reduce number of external configuration files leaving only
workflow definitions files.
- SpringConfiguration replaces osworkflow.xml
- WorkflowFactoryImpl replaces workflows.xml
Usage:
<bean id="myworkflow" class="com.opensymphony.workflow.spi.hibernate.WorkflowDescriptorFactoryBean">
<property name="descriptorResource">
<value>classpath:/META-INF/workflow/myworkflow.xml</value>
</property>
</bean>
<bean id="workflowFactory" class="com.opensymphony.workflow.spi.hibernate.BeanNameWorkflowFactory"/>
author: xd |
setApplicationContext | public void setApplicationContext(ApplicationContext inApplicationContext)(Code) | | |
|
|