|
||||||||||
| 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 SessionContextT - 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 SessionContextpublic EJBObject getEJBObject()
getEJBObject in interface SessionContextpublic java.lang.Class getInvokedBusinessInterface()
getInvokedBusinessInterface in interface SessionContextpublic MessageContext getMessageContext()
getMessageContext in interface SessionContextpublic java.security.Principal getCallerPrincipal()
getCallerPrincipal in interface EJBContextpublic EJBHome getEJBHome()
getEJBHome in interface EJBContextpublic EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface EJBContextpublic java.util.Properties getEnvironment()
getEnvironment in interface EJBContextpublic boolean getRollbackOnly()
getRollbackOnly in interface EJBContextpublic TimerService getTimerService()
getTimerService in interface EJBContextpublic javax.transaction.UserTransaction getUserTransaction()
getUserTransaction in interface EJBContextpublic boolean isCallerInRole(java.security.Identity role)
isCallerInRole in interface EJBContextrole - deprecated
public boolean isCallerInRole(java.lang.String roleName)
isCallerInRole in interface EJBContextroleName - the role to check.
public java.lang.Object lookup(java.lang.String name)
lookup in interface EJBContextname - the name to search
public void setRollbackOnly()
setRollbackOnly in interface EJBContextpublic java.security.Identity getCallerIdentity()
getCallerIdentity in interface EJBContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||