org.jboss.seam.bpm
Class ManagedJbpmContext

java.lang.Object
  extended by org.jboss.seam.bpm.ManagedJbpmContext
All Implemented Interfaces:
Synchronization

@Scope(value=EVENT)
@Name(value="org.jboss.seam.bpm.jbpmContext")
@BypassInterceptors
@Install(precedence=0,
         dependencies="org.jboss.seam.bpm.jbpm")
public class ManagedJbpmContext
extends Object
implements Synchronization

Manages a reference to a JbpmContext.

Author:
Steve Ebersole, Gavin King

Constructor Summary
ManagedJbpmContext()
           
 
Method Summary
 void afterCompletion(int status)
           
 void beforeCompletion()
           
 void create()
           
 void destroy()
           
 org.jbpm.JbpmContext getJbpmContext()
           
static org.jbpm.JbpmContext instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedJbpmContext

public ManagedJbpmContext()
Method Detail

create

@Create
public void create()
            throws NamingException,
                   RollbackException,
                   SystemException
Throws:
NamingException
RollbackException
SystemException

getJbpmContext

@Unwrap
public org.jbpm.JbpmContext getJbpmContext()
                                    throws NamingException,
                                           RollbackException,
                                           SystemException
Throws:
NamingException
RollbackException
SystemException

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int status)
Specified by:
afterCompletion in interface Synchronization

destroy

@Destroy
public void destroy()

instance

public static org.jbpm.JbpmContext instance()