1 package org.jacorb.ir; 2 3 22 23 24 import org.omg.CORBA.INTF_REPOS ; 25 26 29 30 public abstract class IRObject 31 implements org.omg.CORBA.IRObjectOperations 32 { 33 protected org.omg.CORBA.Object myRef; 34 protected org.omg.CORBA.ORB orb; 35 protected org.omg.CORBA.DefinitionKind def_kind; 36 protected String name; 37 38 public org.omg.CORBA.DefinitionKind def_kind() 39 { 40 return def_kind; 41 } 42 43 public String getName() 44 { 45 return name; 46 } 47 48 public abstract void destroy(); 49 50 53 abstract void define(); 54 55 public org.omg.CORBA.Object getReference() 56 { 57 if( myRef == null ) 58 { 59 throw new INTF_REPOS ("Reference undefined!"); 60 } 61 return myRef; 62 } 63 64 public void setReference(org.omg.CORBA.Object ref) 65 { 66 myRef = ref; 67 orb = ((org.omg.CORBA.portable.ObjectImpl )myRef)._orb(); 68 } 69 70 } 71 | Popular Tags |