org.openejb.sfsb
Class StatefulInstanceContext

java.lang.Object
  extended byorg.openejb.AbstractInstanceContext
      extended byorg.openejb.sfsb.StatefulInstanceContext
All Implemented Interfaces:
EJBInstanceContext, org.apache.geronimo.transaction.InstanceContext

public class StatefulInstanceContext
extends AbstractInstanceContext

Version:
$Revision: 1.6 $ $Date: 2004/07/18 22:32:24 $

Field Summary
 
Fields inherited from class org.openejb.AbstractInstanceContext
instance, setContextInvocation, systemChain, unsetContextInvocation
 
Constructor Summary
StatefulInstanceContext(Object containerId, EJBProxyFactory proxyFactory, javax.ejb.SessionBean instance, Object id, org.apache.geronimo.transaction.UserTransactionImpl userTransaction, SystemMethodIndices systemMethodIndices, org.apache.geronimo.core.service.Interceptor systemChain, Set unshareableResources, Set applicationManagedSecurityResources)
           
 
Method Summary
 void afterBegin()
           
 void afterCommit(boolean committed)
           
 void beforeCommit()
           
 void die()
           
 Object getContainerId()
           
 Object getId()
           
 StatefulSessionContext getSessionContext()
           
 boolean isDead()
           
 void setId(Object id)
           
 void setOperation(EJBOperation operation)
           
 
Methods inherited from class org.openejb.AbstractInstanceContext
associate, ejbActivate, ejbPassivate, flush, getApplicationManagedSecurityResources, getConnectionManagerMap, getInstance, getProxyFactory, getTimerService, getUnshareableResources, setContext, unsetContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulInstanceContext

public StatefulInstanceContext(Object containerId,
                               EJBProxyFactory proxyFactory,
                               javax.ejb.SessionBean instance,
                               Object id,
                               org.apache.geronimo.transaction.UserTransactionImpl userTransaction,
                               SystemMethodIndices systemMethodIndices,
                               org.apache.geronimo.core.service.Interceptor systemChain,
                               Set unshareableResources,
                               Set applicationManagedSecurityResources)
Method Detail

getContainerId

public Object getContainerId()
Specified by:
getContainerId in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
getContainerId in class AbstractInstanceContext

setOperation

public void setOperation(EJBOperation operation)

getId

public Object getId()
Specified by:
getId in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
getId in class AbstractInstanceContext

setId

public void setId(Object id)
Specified by:
setId in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
setId in class AbstractInstanceContext

die

public void die()

isDead

public boolean isDead()

getSessionContext

public StatefulSessionContext getSessionContext()

afterBegin

public void afterBegin()
                throws Exception
Throws:
Exception

beforeCommit

public void beforeCommit()
                  throws Exception
Specified by:
beforeCommit in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
beforeCommit in class AbstractInstanceContext
Throws:
Exception

afterCommit

public void afterCommit(boolean committed)
                 throws Exception
Specified by:
afterCommit in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
afterCommit in class AbstractInstanceContext
Throws:
Exception


Copyright © 1999-2005 OpenEJB. All Rights Reserved.