1 25 26 package org.objectweb.easybeans.component.joram; 27 28 import java.util.Timer ; 29 30 import javax.resource.spi.BootstrapContext ; 31 import javax.resource.spi.UnavailableException ; 32 import javax.resource.spi.work.WorkManager ; 33 import javax.resource.spi.XATerminator ; 34 35 39 public class JoramBootstrapContext implements BootstrapContext { 40 41 44 private WorkManager workManager = null; 45 46 49 private XATerminator xaTerm = null; 50 51 56 public JoramBootstrapContext(final WorkManager workManager, final XATerminator xa) { 57 this.workManager = workManager; 58 xaTerm = xa; 59 } 60 61 66 public Timer createTimer() throws UnavailableException { 67 return new Timer (true); 68 } 69 70 74 public WorkManager getWorkManager() { 75 return workManager; 76 } 77 78 82 public XATerminator getXATerminator() { 83 return xaTerm; 84 } 85 } 86 | Popular Tags |