1 10 package org.picocontainer.alternatives; 11 12 import java.io.Serializable ; 13 import java.util.Collections ; 14 import java.util.Collection ; 15 import java.util.List ; 16 import org.picocontainer.PicoContainer; 17 import org.picocontainer.PicoVisitor; 18 import org.picocontainer.ComponentAdapter; 19 20 27 public class EmptyPicoContainer implements PicoContainer, Serializable { 28 public Object getComponentInstance(Object componentKey) { 29 return null; 30 } 31 32 public Object getComponentInstanceOfType(Class componentType) { 33 return null; 34 } 35 public List getComponentInstances() { 36 return Collections.EMPTY_LIST; 37 } 38 39 public PicoContainer getParent() { 40 return null; 41 } 42 public ComponentAdapter getComponentAdapter(Object componentKey) { 43 return null; 44 } 45 46 public ComponentAdapter getComponentAdapterOfType(Class componentType) { 47 return null; 48 } 49 50 public Collection getComponentAdapters() { 51 return Collections.EMPTY_LIST; 52 } 53 54 public List getComponentAdaptersOfType(Class componentType) { 55 return Collections.EMPTY_LIST; 56 } 57 58 public void verify() {} 59 60 public void accept(PicoVisitor visitor) { } 61 62 public List getComponentInstancesOfType(Class componentType) { 63 return Collections.EMPTY_LIST; 64 } 65 66 public void start() {} 67 public void stop() {} 68 public void dispose() {} 69 } 70 | Popular Tags |