KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > tck > testmodels > mule > TestTransactionManagerFactory


1 /*
2  * $Id: TestTransactionManagerFactory.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.tck.testmodels.mule;
12
13 import org.mule.umo.manager.UMOTransactionManagerFactory;
14
15 import javax.transaction.TransactionManager JavaDoc;
16
17 import java.lang.reflect.InvocationHandler JavaDoc;
18 import java.lang.reflect.Method JavaDoc;
19 import java.lang.reflect.Proxy JavaDoc;
20
21 /**
22  * <code>TestTransactionManagerFactory</code> TODO
23  *
24  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
25  * @version $Revision: 3798 $
26  */

27
28 public class TestTransactionManagerFactory implements UMOTransactionManagerFactory
29 {
30     public TransactionManager JavaDoc create() throws Exception JavaDoc
31     {
32         return (TransactionManager JavaDoc)Proxy.newProxyInstance(getClass().getClassLoader(),
33             new Class JavaDoc[]{TransactionManager JavaDoc.class}, new InvocationHandler JavaDoc()
34             {
35                 public Object JavaDoc invoke(Object JavaDoc proxy, Method JavaDoc method, Object JavaDoc[] args) throws Throwable JavaDoc
36                 {
37                     return null;
38                 }
39
40             });
41     }
42 }
43
Popular Tags