|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.EnterpriseContext
The EnterpriseContext is used to associate EJB instances with metadata about it.
StatefulSessionEnterpriseContext
(src) ,
StatelessSessionEnterpriseContext
(src) ,
EntityEnterpriseContext
(src) Nested Class Summary | |
protected class |
EnterpriseContext.EJBContextImpl (src)
|
protected class |
EnterpriseContext.UserTransactionImpl (src)
|
Field Summary | |
protected static Logger (src) |
log
Instance logger. |
Constructor Summary | |
EnterpriseContext(java.lang.Object instance,
Container (src) con)
|
Method Summary | |
void |
clear()
before reusing this context we clear it of previous state called by pool.free() |
abstract void |
discard()
|
java.security.Principal |
getCallerPrincipal()
|
Container (src) |
getContainer()
Gets the container that manages the wrapped bean. |
abstract EJBContext (src) |
getEJBContext()
Get the EJBContext object |
java.lang.Object |
getId()
|
java.lang.Object |
getInstance()
|
Transaction (src) |
getTransaction()
|
java.lang.Object |
getTxLock()
|
protected boolean |
isContainerManagedTx()
|
boolean |
isLocked()
|
protected boolean |
isUserManagedTx()
|
void |
lock()
|
void |
setId(java.lang.Object id)
|
void |
setPrincipal(java.security.Principal principal)
|
void |
setTransaction(Transaction (src) transaction)
|
static void |
setUserTransactionStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener (src) newTsl)
The setUserTransactionStartedListener method is called by
CachedConnectionManager on start and stop. |
void |
unlock()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Logger (src) log
Constructor Detail |
public EnterpriseContext(java.lang.Object instance, Container (src) con)
Method Detail |
public static void setUserTransactionStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener (src) newTsl)
setUserTransactionStartedListener
method is called by
CachedConnectionManager on start and stop. The tsl is notified on
UserTransaction.begin so it (the CachedConnectionManager) can enroll
connections that are already checked out.
newTsl
- a ServerVMClientUserTransaction.UserTransactionStartedListener
valuepublic java.lang.Object getInstance()
public Container (src) getContainer()
public abstract void discard() throws java.rmi.RemoteException
java.rmi.RemoteException
public abstract EJBContext (src) getEJBContext()
public void setId(java.lang.Object id)
public java.lang.Object getId()
public java.lang.Object getTxLock()
public void setTransaction(Transaction (src) transaction)
public Transaction (src) getTransaction()
public void setPrincipal(java.security.Principal principal)
public void lock()
public void unlock()
public boolean isLocked()
public java.security.Principal getCallerPrincipal()
public void clear()
protected boolean isContainerManagedTx()
protected boolean isUserManagedTx()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |