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.Container; 33 34 35 36 44 public class ComponentServerContext 45 implements Context 46 { 47 48 54 60 66 72 78 public Entry[] getEntries(Object object) { 79 ComponentServer component_server_ = (ComponentServer) object; 80 Container[] objects = component_server_.get_containers(); 81 Entry[] values = new Entry[objects.length]; 82 for (int i = 0; i < objects.length; i++) 83 values[i] = new DefaultEntry("Container (" + i + ")", objects[i]); 84 return values; 85 } 86 87 } 88 | Popular Tags |