All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.transaction.lookup.DummyTransactionManagerLookup Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.transaction.lookup;


import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;

import org.infinispan.transaction.tm.DummyTransactionManager;


/**
 * Returns an instance of {@link org.infinispan.transaction.tm.DummyTransactionManager}.
 *
 * @author Bela Ban Sept 5 2003
 * @since 4.0
 */
public class DummyTransactionManagerLookup implements TransactionManagerLookup {

   @Override
   public TransactionManager getTransactionManager() throws Exception {
      return DummyTransactionManager.getInstance();
   }

   public static UserTransaction getUserTransaction() {
      return DummyTransactionManager.getUserTransaction();
   }

   public static void cleanup() {
      DummyTransactionManager.destroy();
   }

   @Override
   public String toString() {
      return "DummyTransactionManagerLookup";
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy