org.apache.openejb.core
Class BaseSessionContext.InjectionSessionState

java.lang.Object
  extended by org.apache.openejb.core.BaseContext.State
      extended by org.apache.openejb.core.BaseSessionContext.SessionState
          extended by org.apache.openejb.core.BaseSessionContext.InjectionSessionState
Enclosing class:
BaseSessionContext

public static class BaseSessionContext.InjectionSessionState
extends BaseSessionContext.SessionState

Dependency injection methods (e.g., setSessionContext)


Constructor Summary
BaseSessionContext.InjectionSessionState()
           
 
Method Summary
 Object getBusinessObject(Class interfce)
           
 Principal getCallerPrincipal(SecurityService securityService)
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 Class getInvokedBusinessInterface()
           
 javax.xml.rpc.handler.MessageContext getMessageContext()
           
 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
getEJBHome, getEJBLocalHome, isJNDIAccessAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSessionContext.InjectionSessionState

public BaseSessionContext.InjectionSessionState()
Method Detail

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()
                                           throws IllegalStateException
Overrides:
getEJBLocalObject in class BaseSessionContext.SessionState
Throws:
IllegalStateException

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws IllegalStateException
Overrides:
getEJBObject in class BaseSessionContext.SessionState
Throws:
IllegalStateException

getMessageContext

public javax.xml.rpc.handler.MessageContext getMessageContext()
                                                       throws IllegalStateException
Overrides:
getMessageContext in class BaseSessionContext.SessionState
Throws:
IllegalStateException

getBusinessObject

public Object getBusinessObject(Class interfce)
Overrides:
getBusinessObject in class BaseSessionContext.SessionState

getInvokedBusinessInterface

public Class getInvokedBusinessInterface()
Overrides:
getInvokedBusinessInterface in class BaseSessionContext.SessionState

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

setRollbackOnly

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

getRollbackOnly

public boolean getRollbackOnly()
                        throws IllegalStateException
Overrides:
getRollbackOnly 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.