1 26 27 package org.objectweb.util.browser.core.naming; 28 29 import org.objectweb.util.browser.api.Context; 30 import org.objectweb.util.browser.api.Entry; 31 import java.util.Vector ; 32 33 39 40 public class DefaultContext implements Context { 41 42 48 49 protected Vector elts_; 50 51 57 60 public DefaultContext() { 61 elts_ = new Vector (); 63 } 64 65 71 84 protected Entry createEntry(Object value, String id) { 85 return new DefaultEntry(value, new DefaultName(id), this); 86 } 87 88 94 public Entry[] getEntries() { 95 return (Entry[])elts_.toArray(new Entry[0]); 96 } 97 98 } 99 | Popular Tags |