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 java.lang.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(ConnectorInstanceContext)
,
TrackedConnectionAssociator.exit(ConnectorInstanceContext)
,
ConnectorInstanceContext
,
ConnectorInstanceContextImpl
Method Summary |
java.util.Set |
getApplicationManagedSecurityResources()
|
org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator |
getAssociator()
|
java.util.Set |
getUnshareableResources()
|
java.lang.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 |
setApplicationManagedSecurityResources(java.util.Set applicationManagedSecurityResources)
|
void |
setAssociator(org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator associator)
Set the TrackedConnectionAssociator instance to allow the bean
to enter and exit a transactional context. |
void |
setUnshareableResources(java.util.Set unshareableResources)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionContextInterceptor
public TransactionContextInterceptor()
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.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:
java.lang.Throwable
getAssociator
public org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator getAssociator()
setAssociator
public void setAssociator(org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator associator)
- Set the TrackedConnectionAssociator instance to allow the bean
to enter and exit a transactional context.
getUnshareableResources
public java.util.Set getUnshareableResources()
setUnshareableResources
public void setUnshareableResources(java.util.Set unshareableResources)
getApplicationManagedSecurityResources
public java.util.Set getApplicationManagedSecurityResources()
setApplicationManagedSecurityResources
public void setApplicationManagedSecurityResources(java.util.Set applicationManagedSecurityResources)
Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.