1
2
3
4
5
6
7
8
9
10
11 package org.mule.tck.testmodels.mule;
12
13 import org.mule.umo.manager.UMOTransactionManagerFactory;
14
15 import java.lang.reflect.InvocationHandler;
16 import java.lang.reflect.Method;
17 import java.lang.reflect.Proxy;
18
19 import javax.transaction.TransactionManager;
20
21
22
23
24
25 public class TestTransactionManagerFactory implements UMOTransactionManagerFactory
26 {
27 public TransactionManager create() throws Exception
28 {
29 return (TransactionManager) Proxy.newProxyInstance(getClass().getClassLoader(),
30 new Class[] {TransactionManager.class},
31 new InvocationHandler()
32 {
33 public Object invoke (Object proxy, Method method, Object[] args) throws Throwable
34 {
35 return null;
36 }
37
38 });
39 }
40 }