1 17 package org.apache.geronimo.connector; 18 19 import java.util.Timer ; 20 import javax.resource.spi.work.WorkManager ; 21 import javax.resource.spi.XATerminator ; 22 import javax.resource.spi.UnavailableException ; 23 24 30 public class GeronimoBootstrapContext implements javax.resource.spi.BootstrapContext { 31 private final WorkManager workManager; 32 private final XATerminator xATerminator; 33 34 37 public GeronimoBootstrapContext() { 38 workManager = null; 39 xATerminator = null; 40 } 41 42 47 public GeronimoBootstrapContext(WorkManager workManager, XATerminator xaTerminator) { 48 this.workManager = workManager; 49 this.xATerminator = xaTerminator; 50 } 51 52 53 56 public WorkManager getWorkManager() { 57 return workManager; 58 } 59 60 63 public XATerminator getXATerminator() { 64 return xATerminator; 65 } 66 67 70 public Timer createTimer() throws UnavailableException { 71 return new Timer (); 72 } 73 74 } 75 | Popular Tags |