1 10 11 package org.mule.tck.testmodels.mule; 12 13 import org.mule.umo.manager.UMOTransactionManagerFactory; 14 15 import javax.transaction.TransactionManager ; 16 17 import java.lang.reflect.InvocationHandler ; 18 import java.lang.reflect.Method ; 19 import java.lang.reflect.Proxy ; 20 21 27 28 public class TestTransactionManagerFactory implements UMOTransactionManagerFactory 29 { 30 public TransactionManager create() throws Exception 31 { 32 return (TransactionManager )Proxy.newProxyInstance(getClass().getClassLoader(), 33 new Class []{TransactionManager .class}, new InvocationHandler () 34 { 35 public Object invoke(Object proxy, Method method, Object [] args) throws Throwable 36 { 37 return null; 38 } 39 40 }); 41 } 42 } 43 | Popular Tags |