org.jencks.factory
Class UserTransactionFactoryBean

java.lang.Object
  extended byorg.jencks.factory.UserTransactionFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class UserTransactionFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

This FactoryBean creates and configures the Geronimo implementation of the UserTransaction interface.

This factory is based on the Geronimo Transaction Context Manager and Connection Tracking Coordinator.

Author:
ttemplier
See Also:
UserTransactionImpl.setUp(TransactionContextManager, org.apache.geronimo.transaction.TrackedConnectionAssociator), UserTransactionImpl.setOnline(boolean)

Constructor Summary
UserTransactionFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          This method instanciates the Geronimo user transaction implementation and sets up it with the transaction context manager used and a connection tracking coordinator.
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setConnectionTrackingCoordinator(org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator coordinator)
          Set the connection tracking coordinator to configure the user transaction.
 void setTransactionContextManager(org.apache.geronimo.transaction.context.TransactionContextManager manager)
          Set the transaction context manager to configure the user transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTransactionFactoryBean

public UserTransactionFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

setTransactionContextManager

public void setTransactionContextManager(org.apache.geronimo.transaction.context.TransactionContextManager manager)
Set the transaction context manager to configure the user transaction.


setConnectionTrackingCoordinator

public void setConnectionTrackingCoordinator(org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator coordinator)
Set the connection tracking coordinator to configure the user transaction.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
This method instanciates the Geronimo user transaction implementation and sets up it with the transaction context manager used and a connection tracking coordinator. It then sets the online property to true in order that the application can used it.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.