jrun.ejb
Class InstanceContext

jrun.ejb.InstanceContext

public abstract class InstanceContext

One InstanceContext per EnterpriseBean. Just as Metadata describes a container and EJBInvocation's describe Method invocations, InstanceContexts describe specific enterprise beans and their environments.
It exposes contextual data to clients via implementing the EJBContext and is therefore the superclass to other instance context implementations.

Author:
Sean Neville, Paul Reilly

Field Summary
protected  Instance instance
           
protected  Operations operations
           
 
Constructor Summary
InstanceContext(Instance instance, Operations operations, EJBContainer ejbContainer)
           
 
Method Summary
 java.security.Identity getCallerIdentity()
           
 java.security.Principal getCallerPrincipal()
           
 EJBContainer getEJBContainer()
           
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 java.util.Properties getEnvironment()
           
 Instance getInstance()
           
 boolean getRollbackOnly()
           
abstract  javax.transaction.UserTransaction getUserTransaction()
           
 boolean isCallerInRole(java.security.Identity id)
           
 boolean isCallerInRole(java.lang.String id)
           
 void setEJBHome(javax.ejb.EJBHome ejbHome)
           
 void setEJBLocalHome(javax.ejb.EJBLocalHome ejbLocalHome)
           
 void setEJBLocalObject(javax.ejb.EJBLocalObject ejbLocalObject)
           
 void setEJBObject(javax.ejb.EJBObject ejbObject)
           
 void setRollbackOnly()
           
 

Field Detail

instance

protected Instance instance

operations

protected Operations operations
Constructor Detail

InstanceContext

public InstanceContext(Instance instance,
                       Operations operations,
                       EJBContainer ejbContainer)
Method Detail

getEJBContainer

public EJBContainer getEJBContainer()

getEnvironment

public java.util.Properties getEnvironment()

getCallerIdentity

public java.security.Identity getCallerIdentity()

getCallerPrincipal

public java.security.Principal getCallerPrincipal()

getEJBHome

public javax.ejb.EJBHome getEJBHome()

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()

getEJBObject

public javax.ejb.EJBObject getEJBObject()

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()

getInstance

public Instance getInstance()

getRollbackOnly

public boolean getRollbackOnly()

setRollbackOnly

public void setRollbackOnly()

isCallerInRole

public boolean isCallerInRole(java.security.Identity id)

isCallerInRole

public boolean isCallerInRole(java.lang.String id)

getUserTransaction

public abstract javax.transaction.UserTransaction getUserTransaction()

setEJBHome

public void setEJBHome(javax.ejb.EJBHome ejbHome)

setEJBLocalHome

public void setEJBLocalHome(javax.ejb.EJBLocalHome ejbLocalHome)

setEJBLocalObject

public void setEJBLocalObject(javax.ejb.EJBLocalObject ejbLocalObject)

setEJBObject

public void setEJBObject(javax.ejb.EJBObject ejbObject)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.