org.jboss.ejb3
Class EJBContextImpl<T extends Container,B extends BeanContext<T>>

java.lang.Object
  extended by org.jboss.ejb3.EJBContextImpl<T,B>
All Implemented Interfaces:
javax.ejb.EJBContext
Direct Known Subclasses:
MessageDrivenContextImpl, ServiceSessionContextImpl, SessionContextDelegateBase

public abstract class EJBContextImpl<T extends Container,B extends BeanContext<T>>
extends Object
implements javax.ejb.EJBContext

EJB3 Enterprise Context Implementation

Version:
$Revision: 82440 $
Author:
Bill Burke, Anil.Saldhana@redhat.com

Field Summary
protected  B beanContext
           
protected  T container
           
protected  org.jboss.ejb3.security.helpers.EJBContextHelper ejbContextHelper
           
protected  org.jboss.security.RealmMapping rm
           
 
Constructor Summary
protected EJBContextImpl(B beanContext)
           
 
Method Summary
 Identity getCallerIdentity()
           
 Principal getCallerPrincipal()
           
protected  T getContainer()
           
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 Properties getEnvironment()
           
protected  org.jboss.security.RealmMapping getRm()
           
 boolean getRollbackOnly()
           
 javax.ejb.TimerService getTimerService()
           
 UserTransaction getUserTransaction()
           
 boolean isCallerInRole(Identity role)
           
 boolean isCallerInRole(String roleName)
           
 Object lookup(String name)
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected transient T extends Container container

rm

protected transient org.jboss.security.RealmMapping rm

beanContext

protected B extends BeanContext<T> beanContext

ejbContextHelper

protected org.jboss.ejb3.security.helpers.EJBContextHelper ejbContextHelper
Constructor Detail

EJBContextImpl

protected EJBContextImpl(B beanContext)
Method Detail

getContainer

protected T getContainer()

getRm

protected org.jboss.security.RealmMapping getRm()

lookup

public Object lookup(String name)
Specified by:
lookup in interface javax.ejb.EJBContext

getCallerIdentity

public Identity getCallerIdentity()
Specified by:
getCallerIdentity in interface javax.ejb.EJBContext

getCallerPrincipal

public Principal getCallerPrincipal()
Specified by:
getCallerPrincipal in interface javax.ejb.EJBContext
See Also:
EJBContext.getCallerPrincipal()

isCallerInRole

public boolean isCallerInRole(Identity role)
Specified by:
isCallerInRole in interface javax.ejb.EJBContext

isCallerInRole

public boolean isCallerInRole(String roleName)
Specified by:
isCallerInRole in interface javax.ejb.EJBContext
See Also:
EJBContext.isCallerInRole(String)

getTimerService

public javax.ejb.TimerService getTimerService()
                                       throws IllegalStateException
Specified by:
getTimerService in interface javax.ejb.EJBContext
Throws:
IllegalStateException

getUserTransaction

public UserTransaction getUserTransaction()
                                   throws IllegalStateException
Specified by:
getUserTransaction in interface javax.ejb.EJBContext
Throws:
IllegalStateException

getEJBHome

public javax.ejb.EJBHome getEJBHome()
Specified by:
getEJBHome in interface javax.ejb.EJBContext

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Specified by:
getEJBLocalHome in interface javax.ejb.EJBContext

getEnvironment

public Properties getEnvironment()
Specified by:
getEnvironment in interface javax.ejb.EJBContext

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException
Specified by:
setRollbackOnly in interface javax.ejb.EJBContext
Throws:
IllegalStateException

getRollbackOnly

public boolean getRollbackOnly()
                        throws IllegalStateException
Specified by:
getRollbackOnly in interface javax.ejb.EJBContext
Throws:
IllegalStateException


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.