View Javadoc
1 /****************************************************************************** 2 * Copyright (C) PicoContainer Organization. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 * * 8 * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant * 9 *****************************************************************************/ 10 11 package picocontainer.defaults; 12 13 import picocontainer.PicoContainer; 14 import picocontainer.PicoInitializationException; 15 16 public class NullContainer implements PicoContainer { 17 public boolean hasComponent(Class compType) { 18 return false; 19 } 20 21 public Object getComponent(Class compType) { 22 return null; 23 } 24 25 public Object[] getComponents() { 26 return new Object[0]; 27 } 28 29 public Class[] getComponentTypes() { 30 return new Class[0]; 31 } 32 33 public void instantiateComponents() throws PicoInitializationException { 34 } 35 } 36

This page was automatically generated by Maven