|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.utils.substitues.FakedSessionContext
public class FakedSessionContext
Represnts a dummy implementation for a session context. Later we can implements more functionality here.
Constructor Summary | |
---|---|
FakedSessionContext()
|
Method Summary | ||
---|---|---|
|
getBusinessObject(java.lang.Class<T> businessInterface)
Obtain an object that can be used to invoke the current bean through the given business interface. |
|
java.security.Identity |
getCallerIdentity()
|
|
java.security.Principal |
getCallerPrincipal()
|
|
EJBHome |
getEJBHome()
|
|
EJBLocalHome |
getEJBLocalHome()
|
|
EJBLocalObject |
getEJBLocalObject()
Obtain a reference to the EJB local object that is associated with the instance. |
|
EJBObject |
getEJBObject()
Obtain a reference to the EJB object that is currently associated with the instance. |
|
java.util.Properties |
getEnvironment()
|
|
java.lang.Class |
getInvokedBusinessInterface()
Obtain the business interface through which the current business method invocation was made. |
|
MessageContext |
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext. |
|
boolean |
getRollbackOnly()
Check if current transaction is marked as rollback only. |
|
TimerService |
getTimerService()
Gets the timer service. |
|
javax.transaction.UserTransaction |
getUserTransaction()
Gets the current transaction. |
|
boolean |
isCallerInRole(java.security.Identity role)
|
|
boolean |
isCallerInRole(java.lang.String roleName)
Check if the given role is in the roles of the current caller's principal. |
|
java.lang.Object |
lookup(java.lang.String name)
Search the given name in java:comp/env ENC environment. |
|
void |
setRollbackOnly()
Sets the current transaction in rollback only mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakedSessionContext()
Method Detail |
---|
public <T> T getBusinessObject(java.lang.Class<T> businessInterface)
getBusinessObject
in interface SessionContext
T
- the interface of the beanbusinessInterface
- One of the local business interfaces or remote
business interfaces for this session bean.
public EJBLocalObject getEJBLocalObject()
getEJBLocalObject
in interface SessionContext
public EJBObject getEJBObject()
getEJBObject
in interface SessionContext
public java.lang.Class getInvokedBusinessInterface()
getInvokedBusinessInterface
in interface SessionContext
public MessageContext getMessageContext()
getMessageContext
in interface SessionContext
public java.security.Principal getCallerPrincipal()
getCallerPrincipal
in interface EJBContext
public EJBHome getEJBHome()
getEJBHome
in interface EJBContext
public EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface EJBContext
public java.util.Properties getEnvironment()
getEnvironment
in interface EJBContext
public boolean getRollbackOnly()
getRollbackOnly
in interface EJBContext
public TimerService getTimerService()
getTimerService
in interface EJBContext
public javax.transaction.UserTransaction getUserTransaction()
getUserTransaction
in interface EJBContext
public boolean isCallerInRole(java.security.Identity role)
isCallerInRole
in interface EJBContext
role
- deprecated
public boolean isCallerInRole(java.lang.String roleName)
isCallerInRole
in interface EJBContext
roleName
- the role to check.
public java.lang.Object lookup(java.lang.String name)
lookup
in interface EJBContext
name
- the name to search
public void setRollbackOnly()
setRollbackOnly
in interface EJBContext
public java.security.Identity getCallerIdentity()
getCallerIdentity
in interface EJBContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |