org.jencks.interceptor
Class TransactionContextInitializer

java.lang.Object
  extended byorg.jencks.interceptor.TransactionContextInitializer
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class TransactionContextInitializer
extends 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(InstanceContext), TrackedConnectionAssociator.exit(InstanceContext), InstanceContext, DefaultInstanceContext

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
TransactionContextInitializer()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 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
 

Field Detail

logger

protected transient org.apache.commons.logging.Log logger
Constructor Detail

TransactionContextInitializer

public TransactionContextInitializer()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

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.