1 9 10 package org.jboss.portal.common.context; 11 12 import java.util.Collections ; 13 import java.util.Iterator ; 14 15 19 public interface Context 20 { 21 22 Context NULL_CONTEXT = new AbstractContext() 23 { 24 final Iterator it = Collections.EMPTY_LIST.iterator(); 25 26 public Iterator childIterator(String name) 27 { 28 return it; 29 } 30 31 public String get(String key) 32 { 33 return ""; 34 } 35 36 public Context put(String key, String value) 37 { 38 return this; 39 } 40 41 public Context put(String key, Integer value) 42 { 43 return this; 44 } 45 }; 46 47 55 public String get(String key); 56 57 67 public Context put(String key, String value); 68 69 79 public Context put(String key, Integer value); 80 81 89 Iterator childIterator(String name); 90 } | Popular Tags |