1 26 package org.objectweb.openccm.explorer.Deployment; 27 28 import org.objectweb.util.explorer.api.Context; 29 import org.objectweb.util.explorer.api.Entry; 30 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 31 import org.omg.Components.Deployment.ComponentServer; 32 import org.omg.Components.Deployment.ServerActivator; 33 34 41 public class ServerActivatorContext 42 implements Context { 43 44 50 56 62 68 public Entry[] getEntries(Object object) { 69 ServerActivator serverActivator_ = (ServerActivator)object; 70 java.util.List v = new java.util.Vector (); 71 72 ComponentServer[] componentServerList = serverActivator_.get_component_servers(); 73 for (int i = 0; i < componentServerList.length; i++) { 74 v.add(new DefaultEntry("ComponentServer " + (i+1), componentServerList[i])); 75 } 76 77 return (Entry[]) v.toArray(new Entry[0]); 79 } 80 81 } 82 | Popular Tags |