Class JOTMTransactionManagerFactory

  • All Implemented Interfaces:
    TransactionManagerFactory

    public final class JOTMTransactionManagerFactory
    extends java.lang.Object
    implements TransactionManagerFactory
    Transaction manager factory instance to be used with J2EE containers where the transaction manager used is JOTM. Implements {link org.castor.jdo.transaction.TransactionManagerFactory}.
    Since:
    1.0
    Version:
    $Revision: 8104 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
    Author:
    Werner Guttmann
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FACTORY_CLASS_NAME
      Name of the JOTM specific transaction manager factory class.
      static java.lang.String NAME
      The name of the factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the short alias for this factory instance.
      javax.transaction.TransactionManager getTransactionManager​(java.lang.String factoryClassName, java.util.Properties properties)
      Acquires a javax.transaction.TransactionManager instance with the given properties from the given factory.
      javax.transaction.TransactionManager getTransactionManager​(java.util.Properties properties)
      Acquires the appropriate javax.transaction.TransactionManager with the given properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FACTORY_CLASS_NAME

        public static final java.lang.String FACTORY_CLASS_NAME
        Name of the JOTM specific transaction manager factory class.
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        The name of the factory.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JOTMTransactionManagerFactory

        public JOTMTransactionManagerFactory()
    • Method Detail

      • getTransactionManager

        public javax.transaction.TransactionManager getTransactionManager​(java.lang.String factoryClassName,
                                                                          java.util.Properties properties)
                                                                   throws TransactionManagerAcquireException
        Acquires a javax.transaction.TransactionManager instance with the given properties from the given factory. The factory implementation needs to be compatible to org.objectweb.jotm.Jotm. The method has been introduced to allow testing with mock objects.
        Parameters:
        factoryClassName - Class name of the factory copatibla with JOTM.
        properties - The properties passed to the transaction manager.
        Returns:
        The transaction manager.
        Throws:
        TransactionManagerAcquireException - If any failure occured when loading the transaction manager.