1 26 package org.objectweb.util.explorer.core.common.lib; 27 28 import java.util.Vector ; 29 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 34 42 public class DefaultContext 43 implements Context 44 { 45 46 52 53 protected Vector elements_ = null; 54 55 61 64 public DefaultContext() { 65 elements_ = new Vector (); 67 } 68 69 75 78 protected Entry createEntry(Object name, Object value){ 79 return new DefaultEntry(name, value); 80 } 81 82 88 91 public Entry[] getEntries(Object object) { 92 return (Entry[])elements_.toArray(new Entry[elements_.size()]); 93 } 94 95 } 96 | Popular Tags |