/** * wrap a ControlImple in a wrapper which can be used to test for equality against ControlWrapper instances * * @param controlImple */ public PseudoControlWrapper(ControlImple controlImple) { _coordinator = null; // for non-local control -- only compute when needed _control = null; _uid = null; // for non-local control -- only compute when needed _local = controlImple; _hashCode = computeHashCode(); }
_uid = computeUid(); _coordinator = computeCoordinator();
PseudoControlWrapper wrapper = new PseudoControlWrapper(control); TransactionReaper.transactionReaper().remove(wrapper);
/** * fetc the uid for the wrapped non-local control * @return the uid * @throws Exception if the coordinator cannot be obtained e.g. because the control is no longer valid */ private Uid computeUid() throws Exception { if (_coordinator == null) { _coordinator = computeCoordinator(); } UidCoordinator uidCoord = Helper.getUidCoordinator(_coordinator); return Helper.getUid(uidCoord); }
_uid = computeUid(); _coordinator = computeCoordinator();
PseudoControlWrapper wrapper = new PseudoControlWrapper(control); TransactionReaper.transactionReaper().remove(wrapper);
/** * fetc the uid for the wrapped non-local control * @return the uid * @throws Exception if the coordinator cannot be obtained e.g. because the control is no longer valid */ private Uid computeUid() throws Exception { if (_coordinator == null) { _coordinator = computeCoordinator(); } UidCoordinator uidCoord = Helper.getUidCoordinator(_coordinator); return Helper.getUid(uidCoord); }
/** * wrap a ControlImple in a wrapper which can be used to test for equality against ControlWrapper instances * * @param controlImple */ public PseudoControlWrapper(ControlImple controlImple) { _coordinator = null; // for non-local control -- only compute when needed _control = null; _uid = null; // for non-local control -- only compute when needed _local = controlImple; _hashCode = computeHashCode(); }
PseudoControlWrapper wrapper = new PseudoControlWrapper(control); TransactionReaper.transactionReaper().remove(wrapper);
/** * wrap a Control in a wrapper which can be used to test for equality against ControlWrapper instances * n.b. the Control must have been determined to be a non-local control by the caller * * @param control */ public PseudoControlWrapper(Control control) { _coordinator = null; // for non-local control -- only compute when needed _control = control; _uid = null; // for non-local control -- only compute when needed _local = null; _hashCode = computeHashCode(); }
PseudoControlWrapper wrapper = new PseudoControlWrapper(control); TransactionReaper.transactionReaper().remove(wrapper);
/** * wrap a Control in a wrapper which can be used to test for equality against ControlWrapper instances * n.b. the Control must have been determined to be a non-local control by the caller * * @param control */ public PseudoControlWrapper(Control control) { _coordinator = null; // for non-local control -- only compute when needed _control = control; _uid = null; // for non-local control -- only compute when needed _local = null; _hashCode = computeHashCode(); }