|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.plugins.AbstractInterceptor (src)
org.jboss.ejb.plugins.EntityInstanceInterceptor
The instance interceptors role is to acquire a context representing the target object from the cache.
This particular container interceptor implements pessimistic locking on the transaction that is associated with the retrieved instance. If there is a transaction associated with the target component and it is different from the transaction associated with the Invocation coming in then the policy is to wait for transactional commit.
We also implement serialization of calls in here (this is a spec requirement). This is a fine grained notify, notifyAll mechanism. We notify on ctx serialization locks and notifyAll on global transactional locks.
WARNING: critical code, get approval from senior developers before changing.
Field Summary | |
protected EntityContainer (src) |
container
|
protected static java.lang.reflect.Method |
ejbTimeout
A reference to TimedObject.ejbTimeout(javax.ejb.Timer) . |
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor (src) |
log, nextInterceptor |
Constructor Summary | |
EntityInstanceInterceptor()
|
Method Summary | |
Container (src) |
getContainer()
|
java.lang.Object |
invoke(Invocation (src) mi)
??? |
java.lang.Object |
invokeHome(Invocation (src) mi)
??? |
void |
setContainer(Container (src) container)
This callback is set by the container so that the plugin may access it |
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor (src) |
create, destroy, getNext, setNext, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EntityContainer (src) container
protected static final java.lang.reflect.Method ejbTimeout
TimedObject.ejbTimeout(javax.ejb.Timer)
.
Constructor Detail |
public EntityInstanceInterceptor()
Method Detail |
public void setContainer(Container (src) container)
ContainerPlugin (src)
setContainer
in interface ContainerPlugin (src)
setContainer
in class AbstractInterceptor (src)
public Container (src) getContainer()
getContainer
in class AbstractInterceptor (src)
public java.lang.Object invokeHome(Invocation (src) mi) throws java.lang.Exception
Interceptor (src)
invokeHome
in interface Interceptor (src)
invokeHome
in class AbstractInterceptor (src)
java.lang.Exception
public java.lang.Object invoke(Invocation (src) mi) throws java.lang.Exception
Interceptor (src)
invoke
in interface Interceptor (src)
invoke
in class AbstractInterceptor (src)
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |