org.apache.openejb.core.mdb
Class MdbContext.InjectionMdbState

java.lang.Object
  extended by org.apache.openejb.core.BaseContext.State
      extended by org.apache.openejb.core.mdb.MdbContext.InjectionMdbState
Enclosing class:
MdbContext

protected static class MdbContext.InjectionMdbState
extends BaseContext.State

Dependency injection methods (e.g., setMessageDrivenContext)


Constructor Summary
protected MdbContext.InjectionMdbState()
           
 
Method Summary
 Principal getCallerPrincipal(SecurityService securityService)
           
 javax.ejb.EJBHome getEJBHome()
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 boolean getRollbackOnly()
           
 javax.ejb.TimerService getTimerService()
           
 UserTransaction getUserTransaction(UserTransaction userTransaction)
           
 boolean isCallerInRole(SecurityService securityService, String roleName)
           
 boolean isEntityManagerAccessAllowed()
           
 boolean isEntityManagerFactoryAccessAllowed()
           
 boolean isMessageContextAccessAllowed()
           
 boolean isTimerAccessAllowed()
           
 boolean isTimerMethodAllowed()
           
 boolean isUserTransactionAccessAllowed()
           
 void setRollbackOnly()
           
 
Methods inherited from class org.apache.openejb.core.BaseContext.State
isJNDIAccessAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdbContext.InjectionMdbState

protected MdbContext.InjectionMdbState()
Method Detail

getEJBHome

public javax.ejb.EJBHome getEJBHome()
Overrides:
getEJBHome in class BaseContext.State

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Overrides:
getEJBLocalHome in class BaseContext.State

getCallerPrincipal

public Principal getCallerPrincipal(SecurityService securityService)
Overrides:
getCallerPrincipal in class BaseContext.State

isCallerInRole

public boolean isCallerInRole(SecurityService securityService,
                              String roleName)
Overrides:
isCallerInRole in class BaseContext.State

getUserTransaction

public UserTransaction getUserTransaction(UserTransaction userTransaction)
                                   throws IllegalStateException
Overrides:
getUserTransaction in class BaseContext.State
Throws:
IllegalStateException

getRollbackOnly

public boolean getRollbackOnly()
                        throws IllegalStateException
Overrides:
getRollbackOnly in class BaseContext.State
Throws:
IllegalStateException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException
Overrides:
setRollbackOnly in class BaseContext.State
Throws:
IllegalStateException

getTimerService

public javax.ejb.TimerService getTimerService()
                                       throws IllegalStateException
Overrides:
getTimerService in class BaseContext.State
Throws:
IllegalStateException

isUserTransactionAccessAllowed

public boolean isUserTransactionAccessAllowed()
Overrides:
isUserTransactionAccessAllowed in class BaseContext.State

isMessageContextAccessAllowed

public boolean isMessageContextAccessAllowed()
Overrides:
isMessageContextAccessAllowed in class BaseContext.State

isEntityManagerFactoryAccessAllowed

public boolean isEntityManagerFactoryAccessAllowed()
Overrides:
isEntityManagerFactoryAccessAllowed in class BaseContext.State

isEntityManagerAccessAllowed

public boolean isEntityManagerAccessAllowed()
Overrides:
isEntityManagerAccessAllowed in class BaseContext.State

isTimerAccessAllowed

public boolean isTimerAccessAllowed()
Overrides:
isTimerAccessAllowed in class BaseContext.State

isTimerMethodAllowed

public boolean isTimerMethodAllowed()
Overrides:
isTimerMethodAllowed in class BaseContext.State


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.