1 26 package org.objectweb.openccm.explorer.Components; 27 28 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 import org.omg.Components.ConsumerDescription; 34 35 42 public class ConsumerContext 43 implements Context 44 { 45 46 52 58 64 protected String getName(org.omg.CORBA.Object o) { 65 TypageCORBA tc = new TypageCORBA(o, org.objectweb.openccm.corba.TheORB.getORB()); 66 return tc.getTypeID(); 67 } 68 69 75 78 public Entry[] getEntries(Object object) { 79 ConsumerDescription consumerDesc = (ConsumerDescription)object; 80 return new Entry[] {new DefaultEntry(getName(consumerDesc.consumer), consumerDesc.consumer)}; 81 } 82 83 } 84 | Popular Tags |