org.jbpm.pvm.internal.processengine
Class SpringHelper

java.lang.Object
  extended by org.jbpm.pvm.internal.processengine.SpringHelper
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware

public class SpringHelper
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean

Author:
Joram Barrez, Huisheng Xu

Field Summary
protected  org.springframework.context.ApplicationContext applicationContext
           
protected  java.lang.String jbpmCfg
           
protected  ProcessEngine processEngine
           
 
Constructor Summary
SpringHelper()
           
 
Method Summary
 ProcessEngine createProcessEngine()
           
 void destroy()
          close process engine when spring close/refresh ctx.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setJbpmCfg(java.lang.String jbpmCfg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected org.springframework.context.ApplicationContext applicationContext

jbpmCfg

protected java.lang.String jbpmCfg

processEngine

protected ProcessEngine processEngine
Constructor Detail

SpringHelper

public SpringHelper()
Method Detail

setJbpmCfg

public void setJbpmCfg(java.lang.String jbpmCfg)

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

createProcessEngine

public ProcessEngine createProcessEngine()

destroy

public void destroy()
             throws java.lang.Exception
close process engine when spring close/refresh ctx.

Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception


Copyright © 2010 JBoss Community. All Rights Reserved.