1 26 package org.objectweb.openccm.explorer.DCI; 27 28 import org.ist.coach.DCI.HomeInfo; 29 import org.objectweb.openccm.explorer.CORBA.TypageCORBA; 30 import org.objectweb.util.explorer.api.Context; 31 import org.objectweb.util.explorer.api.Entry; 32 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 33 34 41 public class HomeInfoContext 42 implements Context 43 { 44 45 51 57 63 protected String getName(org.omg.CORBA.Object o) { 64 TypageCORBA tc = new TypageCORBA(o, org.objectweb.openccm.corba.TheORB.getORB()); 65 return tc.getTypeID(); 66 } 67 68 74 77 public Entry[] getEntries(Object object) { 78 HomeInfo homeInfo = (HomeInfo) object; 79 return new Entry[] {new DefaultEntry(homeInfo.uid, homeInfo.home_ref)}; 80 } 81 82 } 83 | Popular Tags |