org.jencks.interceptor
Class TransactionContextInterceptor
java.lang.Object
org.jencks.interceptor.TransactionContextInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
- public class TransactionContextInterceptor
- extends Object
- implements org.aopalliance.intercept.MethodInterceptor
This servlet filter is used to enter in a transactional context
automtically at every servlet call and exit of it when the response
is sent back to the client.
- Author:
- Thierry Templier
- See Also:
TrackedConnectionAssociator.enter(InstanceContext)
,
TrackedConnectionAssociator.exit(InstanceContext)
,
InstanceContext
,
DefaultInstanceContext
Method Summary |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
This is the central method of the filter which allows the
request to enter in a transactionnal context and exit when
the request is sent back to the client. |
void |
setAssociator(org.apache.geronimo.transaction.TrackedConnectionAssociator associator)
Set the TrackedConnectionAssociator instance to allow the bean
to enter and exit a transactional context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionContextInterceptor
public TransactionContextInterceptor()
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
- This is the central method of the filter which allows the
request to enter in a transactionnal context and exit when
the request is sent back to the client.
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
- See Also:
#enterContext(Set, Set)
,
#exitContext(InstanceContext)
setAssociator
public void setAssociator(org.apache.geronimo.transaction.TrackedConnectionAssociator associator)
- Set the TrackedConnectionAssociator instance to allow the bean
to enter and exit a transactional context.
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.