1 28 package org.objectweb.jonas.resource; 29 30 import java.util.Timer ; 31 32 import javax.resource.spi.BootstrapContext ; 33 import javax.resource.spi.UnavailableException ; 34 import javax.resource.spi.work.WorkManager ; 35 import javax.resource.spi.XATerminator ; 36 37 41 public class ResourceBootstrapContext implements BootstrapContext { 42 43 46 private WorkManager wrkMgr = null; 47 50 private XATerminator xaTerm = null; 51 52 57 public ResourceBootstrapContext(WorkManager wm, XATerminator xa) { 58 wrkMgr = wm; 59 xaTerm = xa; 60 } 61 62 63 68 public Timer createTimer() throws UnavailableException { 69 return new Timer (true); 70 } 71 72 76 public WorkManager getWorkManager() { 77 return wrkMgr; 78 } 79 80 84 public XATerminator getXATerminator() { 85 return xaTerm; 86 } 87 } | Popular Tags |