|
||||||||||
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.EntitySynchronizationInterceptor
The role of this interceptor is to synchronize the state of the cache with the underlying storage. It does this with the ejbLoad and ejbStore semantics of the EJB specification. In the presence of a transaction this is triggered by transaction demarcation. It registers a callback with the underlying transaction monitor through the JTA interfaces. If there is no transaction the policy is to store state upon returning from invocation. The synchronization polices A,B,C of the specification are taken care of here.
WARNING: critical code, get approval from senior developers before changing.
Nested Class Summary | |
protected class |
EntitySynchronizationInterceptor.InstanceSynchronization (src)
|
Field Summary | |
protected int |
commitOption
The current commit option. |
protected EntityContainer (src) |
container
The container of this interceptor. |
protected long |
optionDRefreshRate
The refresh rate for commit option d |
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor (src) |
log, nextInterceptor |
Constructor Summary | |
EntitySynchronizationInterceptor()
|
Method Summary | |
void |
create()
create the service, do expensive operations etc |
protected Synchronization (src) |
createSynchronization(Transaction (src) tx,
EntityEnterpriseContext (src) ctx)
|
Container (src) |
getContainer()
|
java.lang.Object |
invoke(Invocation (src) mi)
??? |
java.lang.Object |
invokeHome(Invocation (src) mi)
??? |
protected void |
register(EntityEnterpriseContext (src) ctx,
Transaction (src) tx)
Register a transaction synchronization callback with a context. |
void |
setContainer(Container (src) container)
This callback is set by the container so that the plugin may access it |
void |
start()
start the service, create is already called |
void |
stop()
stop the service |
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor (src) |
destroy, getNext, setNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int commitOption
protected long optionDRefreshRate
protected EntityContainer (src) container
Constructor Detail |
public EntitySynchronizationInterceptor()
Method Detail |
public Container (src) getContainer()
getContainer
in class AbstractInterceptor (src)
public void setContainer(Container (src) container)
ContainerPlugin (src)
setContainer
in interface ContainerPlugin (src)
setContainer
in class AbstractInterceptor (src)
public void create() throws java.lang.Exception
Service (src)
create
in interface Service (src)
create
in class AbstractInterceptor (src)
java.lang.Exception
public void start()
Service (src)
start
in interface Service (src)
start
in class AbstractInterceptor (src)
public void stop()
Service (src)
stop
in interface Service (src)
stop
in class AbstractInterceptor (src)
protected Synchronization (src) createSynchronization(Transaction (src) tx, EntityEnterpriseContext (src) ctx)
protected void register(EntityEnterpriseContext (src) ctx, Transaction (src) tx)
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 |