org.jencks.interceptor
Class TransactionContextInitializer

java.lang.Object
  extended by 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
           
 
Constructor Summary
TransactionContextInitializer()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.util.Set getApplicationManagedSecurityResources()
           
 org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator getAssociator()
           
 java.util.Set getUnshareableResources()
           
 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
 

Field Detail

logger

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

TransactionContextInitializer

public TransactionContextInitializer()
Method Detail

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.