org.jencks.interceptor
Class TransactionContextInitializer
java.lang.Object
org.jencks.interceptor.TransactionContextInitializer
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class TransactionContextInitializer
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
This bean is used to configure a transactional context for
applications that work only within a single thread.
At the beginning, it makes enter the application in a new
context and, at the end, exit of it.
- Author:
- Thierry Templier
- See Also:
TrackedConnectionAssociator.enter(ConnectorInstanceContext)
,
TrackedConnectionAssociator.exit(ConnectorInstanceContext)
,
ConnectorInstanceContext
,
ConnectorInstanceContextImpl
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.apache.commons.logging.Log logger
TransactionContextInitializer
public TransactionContextInitializer()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
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.