1 26 27 package org.objectweb.openccm.ir3; 28 29 38 39 abstract public class IFRObject 40 extends org.objectweb.util.ref.lib.ReferencableBase 41 { 42 48 49 private IFR ifr_; 50 51 52 private org.omg.PortableServer.Servant servant_; 53 54 60 63 public 64 IFRObject(IFR ifr) 65 { 66 super(); 68 69 ifr_ = ifr; 71 servant_ = null; 72 } 73 74 80 83 public IFR 84 getIFR() 85 { 86 return ifr_; 87 } 88 89 92 public org.omg.PortableServer.Servant 93 getServant() 94 { 95 return servant_; 96 } 97 98 101 public org.omg.CORBA.Object 102 asObject() 103 { 104 return servant_._this_object(); 105 } 106 107 110 public void 111 setServant(org.omg.PortableServer.Servant servant) 112 { 113 if (servant_ != null) 115 ifr_.deactivate(servant_); 116 117 servant_ = servant; 118 119 if (servant != null) 121 ifr_.activate(servant, this); 122 } 123 } 124 | Popular Tags |