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

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

protected static class MdbContext.LifecycleMdbState
extends BaseContext.State

PostConstruct, Pre-Destroy lifecycle callback interceptor methods


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

Constructor Detail

MdbContext.LifecycleMdbState

protected MdbContext.LifecycleMdbState()
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

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

isMessageContextAccessAllowed

public boolean isMessageContextAccessAllowed()
Overrides:
isMessageContextAccessAllowed 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.