1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 32 40 41 abstract public class AnonymousIDLType 42 extends IRObject_impl 43 implements IDLTypeOperations 44 { 45 51 57 58 public 59 AnonymousIDLType(IFR ifr) 60 { 61 super(ifr); 63 } 64 65 71 74 protected boolean 75 isUnderDestruction() 76 { 77 if(super.isUnderDestruction()) return true; 79 80 if (getReferencedByCounter() != 0) 82 { 83 org.objectweb.util.ref.api.Referencable[] referenced_by = getReferencedBy(); 85 for(int i=0; i<referenced_by.length; i++) { 86 if(!((IRObject_impl)(referenced_by[i])).isUnderDestruction()) 89 return false; 90 } 91 } 92 return true; 93 } 94 95 101 107 115 public void 116 removeReferencedBy(org.objectweb.util.ref.api.Referencable ref) 117 { 118 super.removeReferencedBy(ref); 119 120 if (getReferencedByCounter() == 0) 123 destroy(); 124 } 125 126 132 134 140 } 142 | Popular Tags |