|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.EnterpriseContext
The EnterpriseContext is used to associate EJB instances with metadata about it.
StatefulSessionEnterpriseContext
,
StatelessSessionEnterpriseContext
,
EntityEnterpriseContext
Nested Class Summary | |
protected class |
EnterpriseContext.EJBContextImpl
|
protected class |
EnterpriseContext.UserTransactionImpl
|
Field Summary | |
protected static org.jboss.logging.Logger |
log
Instance logger. |
Constructor Summary | |
EnterpriseContext(Object instance,
Container con)
|
Method Summary | |
void |
clear()
before reusing this context we clear it of previous state called by pool.free() |
abstract void |
discard()
|
Principal |
getCallerPrincipal()
|
Container |
getContainer()
Gets the container that manages the wrapped bean. |
abstract javax.ejb.EJBContext |
getEJBContext()
Get the EJBContext object |
Object |
getId()
|
Object |
getInstance()
|
Transaction |
getTransaction()
|
Object |
getTxLock()
|
protected boolean |
isContainerManagedTx()
|
boolean |
isLocked()
|
protected boolean |
isUserManagedTx()
|
void |
lock()
|
void |
setId(Object id)
|
void |
setPrincipal(Principal principal)
|
void |
setTransaction(Transaction transaction)
|
static void |
setUserTransactionStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener 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 org.jboss.logging.Logger log
Constructor Detail |
public EnterpriseContext(Object instance, Container con)
Method Detail |
public static void setUserTransactionStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener 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 Object getInstance()
public Container getContainer()
public abstract void discard() throws RemoteException
RemoteException
public abstract javax.ejb.EJBContext getEJBContext()
public void setId(Object id)
public Object getId()
public Object getTxLock()
public void setTransaction(Transaction transaction)
public Transaction getTransaction()
public void setPrincipal(Principal principal)
public void lock()
public void unlock()
public boolean isLocked()
public Principal getCallerPrincipal()
public void clear()
protected boolean isContainerManagedTx()
protected boolean isUserManagedTx()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |