1 17 18 package org.apache.geronimo.transaction.context; 19 20 import org.apache.geronimo.transaction.ExtendedTransactionManager; 21 22 25 class BeanTransactionContext extends InheritableTransactionContext { 26 private UnspecifiedTransactionContext oldContext; 27 28 BeanTransactionContext(ExtendedTransactionManager txnManager, UnspecifiedTransactionContext oldContext) { 29 super(txnManager); 30 this.oldContext = oldContext; 31 } 32 33 UnspecifiedTransactionContext getOldContext() { 34 return oldContext; 35 } 36 37 void setOldContext(UnspecifiedTransactionContext oldContext) { 38 if (oldContext != null && oldContext.isInheritable()) { 39 throw new IllegalArgumentException ("Old context is inheritable"); 40 } 41 this.oldContext = oldContext; 42 } 43 } 44 | Popular Tags |