1 |
| package org.jboss.cache.transaction; |
2 |
| |
3 |
| import org.apache.commons.logging.Log; |
4 |
| import org.apache.commons.logging.LogFactory; |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| public class BatchModeTransactionManager extends DummyBaseTransactionManager { |
16 |
| static BatchModeTransactionManager instance=null; |
17 |
| static Log log=LogFactory.getLog(BatchModeTransactionManager.class); |
18 |
| private static final long serialVersionUID = 5656602677430350961L; |
19 |
| |
20 |
46
| public BatchModeTransactionManager() {
|
21 |
| } |
22 |
| |
23 |
238
| public static BatchModeTransactionManager getInstance() {
|
24 |
238
| if(instance == null) {
|
25 |
46
| instance=new BatchModeTransactionManager();
|
26 |
| } |
27 |
238
| return instance;
|
28 |
| } |
29 |
| |
30 |
0
| public static void destroy() {
|
31 |
0
| if(instance == null) return;
|
32 |
0
| instance.setTransaction(null);
|
33 |
0
| instance=null;
|
34 |
| } |
35 |
| |
36 |
| } |