1 26 27 package org.objectweb.openccm.explorer.CosTrading; 28 29 import org.objectweb.util.explorer.api.Context; 30 import org.objectweb.util.explorer.api.Entry; 31 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 32 import org.omg.CosTrading.ProxyPackage.ProxyInfo; 33 34 41 public class ProxyOffersContext 42 implements Context 43 { 44 45 51 57 63 69 public Entry[] getEntries(Object object) { 70 ProxyOffers proxyOffers = (ProxyOffers)object; 71 ProxyInfo[] infos = proxyOffers.getOffers(); 72 Entry[] values = new Entry[infos.length]; 73 for (int i=0 ; i<infos.length ; i++) { 74 values[i] = new DefaultEntry("Proxy" + i, infos[i]); 75 } 76 return values; 77 } 78 79 } 80 | Popular Tags |