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.ConnectionDescription; 34 35 42 public class ConnectionContext 43 implements Context { 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 ConnectionContainer connection = (ConnectionContainer)object; 79 ConnectionDescription connectionDesc = (ConnectionDescription) connection.getConnection(); 80 return new Entry[]{new DefaultEntry(getName(connectionDesc.objref), connectionDesc.objref)}; 81 } 82 83 } 84 | Popular Tags |