Coverage Report - org.mule.module.spring.transaction.SpringTransactionManagerFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
SpringTransactionManagerFactory
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.module.spring.transaction;
 8  
 
 9  
 import org.mule.api.config.MuleConfiguration;
 10  
 import org.mule.api.transaction.TransactionManagerFactory;
 11  
 
 12  
 import javax.transaction.TransactionManager;
 13  
 
 14  
 /**
 15  
  * A holder to a transaction manager set via a Spring Application context
 16  
  */
 17  0
 public class SpringTransactionManagerFactory implements TransactionManagerFactory
 18  
 {
 19  
 
 20  
     private TransactionManager transactionManager;
 21  
 
 22  
     synchronized public void setTransactionManager(TransactionManager transactionManager)
 23  
     {
 24  0
         this.transactionManager = transactionManager;
 25  0
     }
 26  
 
 27  
     synchronized public TransactionManager create(MuleConfiguration config) throws Exception
 28  
     {
 29  0
         return transactionManager;
 30  
     }
 31  
 
 32  
 }