1 26 package org.objectweb.openccm.explorer.DCI; 27 28 import org.ist.coach.DCI.ExtComponentInstallation; 29 import org.ist.coach.DCI.NodeManager; 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.Deployment.ServerActivator; 34 35 42 public class NodeManagerContext 43 implements Context 44 { 45 46 52 58 64 70 public Entry[] getEntries(Object object) { 71 NodeManager nodeManager = (NodeManager) object; 72 java.util.List v = new java.util.Vector (); 73 74 ServerActivator serverActivator = nodeManager.provide_server_activator(); 76 if(serverActivator!=null) 77 v.add(new DefaultEntry("Component Servers", serverActivator)); 78 79 ExtComponentInstallation componentInstallation = nodeManager.provide_component_installation(); 81 if(componentInstallation!=null) 82 v.add(new DefaultEntry("Installed Components", componentInstallation)); 83 84 return (Entry[]) v.toArray(new Entry[0]); 86 } 87 88 } 89 | Popular Tags |