1
2
3
4
5
6
7
8
9
10
11 package org.mule.tck.testmodels.mule;
12
13 import org.mule.api.MuleContext;
14 import org.mule.api.transaction.Transaction;
15 import org.mule.api.transaction.TransactionException;
16 import org.mule.api.transaction.TransactionFactory;
17
18
19
20
21
22
23 public class TestTransactionFactory implements TransactionFactory
24 {
25
26
27 private String value;
28
29 public Transaction beginTransaction(MuleContext muleContext) throws TransactionException
30 {
31 return new TestTransaction(muleContext);
32 }
33
34 public boolean isTransacted()
35 {
36 return true;
37 }
38
39 public String getValue()
40 {
41 return value;
42 }
43
44 public void setValue(String value)
45 {
46 this.value = value;
47 }
48
49 }