performDestroy(childPoas[ctr], destroyedPOATemplates);
performDestroy(childPoas[ctr], destroyedPOATemplates);
public void performDestroy(POAImpl poa, Set<ObjectReferenceTemplate> destroyedPOATemplates) if (!prepareForDestruction(poa, destroyedPOATemplates)) return; completeDestruction(poa, parent, destroyedPOATemplates);
public void performDestroy(POAImpl poa, Set<ObjectReferenceTemplate> destroyedPOATemplates) if (!prepareForDestruction(poa, destroyedPOATemplates)) return; completeDestruction(poa, parent, destroyedPOATemplates);
DestroyThread destroyer = new DestroyThread(false, debug); destroyer.doIt(this, true);
DestroyThread destroyer = new DestroyThread(false, debug); destroyer.doIt(this, true);
public void doIt(POAImpl thePoa, boolean wait) { if (debug) { ORBUtility.dprint(this, "Calling DestroyThread.doIt(thePOA=" + thePoa + " wait=" + wait + " etherealize=" + etherealize); } this.thePoa = thePoa; this.wait = wait; if (wait) { run(); } else { // Catch exceptions since setDaemon can cause a security exception to be thrown under netscape in the // Applet mode try { setDaemon(true); } catch (Exception e) { } start(); } }
public void doIt(POAImpl thePoa, boolean wait) { if (debug) { ORBUtility.dprint(this, "Calling DestroyThread.doIt(thePOA=" + thePoa + " wait=" + wait + " etherealize=" + etherealize); } this.thePoa = thePoa; this.wait = wait; if (wait) { run(); } else { // Catch exceptions since setDaemon can cause a security exception to be thrown under netscape in the // Applet mode try { setDaemon(true); } catch (Exception e) { } start(); } }
/** * <code>destroy</code> <b>Section 3.3.8.4</b> */ public void destroy(boolean etherealize, boolean wait_for_completion) { // This is to avoid deadlock if (wait_for_completion && getORB().isDuringDispatch()) { throw lifecycleWrapper().destroyDeadlock(); } DestroyThread destroyer = new DestroyThread(etherealize, debug); destroyer.doIt(this, wait_for_completion); }
/** * <code>destroy</code> <b>Section 3.3.8.4</b> */ public void destroy(boolean etherealize, boolean wait_for_completion) { // This is to avoid deadlock if (wait_for_completion && getORB().isDuringDispatch()) { throw lifecycleWrapper().destroyDeadlock(); } DestroyThread destroyer = new DestroyThread(etherealize, debug); destroyer.doIt(this, wait_for_completion); }
public void run() { Set<ObjectReferenceTemplate> destroyedPOATemplates = new HashSet<ObjectReferenceTemplate>(); performDestroy(thePoa, destroyedPOATemplates); Iterator<ObjectReferenceTemplate> iter = destroyedPOATemplates.iterator(); ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[destroyedPOATemplates.size()]; int index = 0; while (iter.hasNext()) orts[index++] = iter.next(); thePoa.getORB().getPIHandler().adapterStateChanged(orts, NON_EXISTENT.value); }
public void run() { Set<ObjectReferenceTemplate> destroyedPOATemplates = new HashSet<ObjectReferenceTemplate>(); performDestroy(thePoa, destroyedPOATemplates); Iterator<ObjectReferenceTemplate> iter = destroyedPOATemplates.iterator(); ObjectReferenceTemplate[] orts = new ObjectReferenceTemplate[destroyedPOATemplates.size()]; int index = 0; while (iter.hasNext()) orts[index++] = iter.next(); thePoa.getORB().getPIHandler().adapterStateChanged(orts, NON_EXISTENT.value); }