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 org.picocontainer.extras;
12
13 import org.picocontainer.PicoContainer;
14 import org.picocontainer.PicoInstantiationException;
15
16 import java.util.Set;
17 import java.util.Collections;
18 import java.util.Collection;
19 import java.io.Serializable;
20
21 public class NullContainer implements PicoContainer, Serializable {
22 public boolean hasComponent(Object compType) {
23 return false;
24 }
25
26 public Object getComponent(Object compType) {
27 return null;
28 }
29
30 public Collection getComponents() {
31 return Collections.EMPTY_SET;
32 }
33
34 public Collection getComponentKeys() {
35 return Collections.EMPTY_SET;
36 }
37
38 public void instantiateComponents() throws PicoInstantiationException {
39 }
40
41 public Object getComponentMulticaster() {
42 return null;
43 }
44
45 public Object getComponentMulticaster(boolean callInInstantiationOrder, boolean callUnmanagedComponents) {
46 return null;
47 }
48 }
49
This page was automatically generated by Maven