/** * Create a new instance with the specified parent. */ public ControlImple (Control parentCon, ArjunaTransactionImple parentTran) { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ControlImple::ControlImple ( Control parentCon, " + ((parentTran != null) ? parentTran.get_uid() : Uid.nullUid()) + " )"); } _theTerminator = null; _theCoordinator = null; _parentControl = parentCon; _transactionHandle = new ArjunaTransactionImple(_parentControl, parentTran); _theUid = _transactionHandle.get_uid(); _transactionImpl = null; _myControl = null; _destroyed = false; /* * Pass a pointer to the control to the transaction so it knows what the * control is. We use this for transaction comparison and * thread-to-context management. */ _transactionHandle.setControlHandle(this); addControl(); }
/** * Create a new instance with the specified parent. */ public ControlImple (Control parentCon, ArjunaTransactionImple parentTran) { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ControlImple::ControlImple ( Control parentCon, " + ((parentTran != null) ? parentTran.get_uid() : Uid.nullUid()) + " )"); } _theTerminator = null; _theCoordinator = null; _parentControl = parentCon; _transactionHandle = new ArjunaTransactionImple(_parentControl, parentTran); _theUid = _transactionHandle.get_uid(); _transactionImpl = null; _myControl = null; _destroyed = false; /* * Pass a pointer to the control to the transaction so it knows what the * control is. We use this for transaction comparison and * thread-to-context management. */ _transactionHandle.setControlHandle(this); addControl(); }