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.SubscriberDescription; 34 35 42 public class SubscriberContext 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 public Entry[] getEntries(Object object) { 76 SubscriberContainer subscriber = (SubscriberContainer)object; 77 SubscriberDescription subscriberDesc = subscriber.getSubscriber(); 78 return new Entry[] {new DefaultEntry(getName(subscriberDesc.consumer), subscriberDesc.consumer)}; 79 } 80 81 } 82 | Popular Tags |