|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NullContainer.java | - | 100% | 100% | 100% |
|
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 | 3 |
public boolean hasComponent(Object compType) { |
23 | 3 |
return false; |
24 |
} |
|
25 |
|
|
26 | 1 |
public Object getComponent(Object compType) {
|
27 | 1 |
return null; |
28 |
} |
|
29 |
|
|
30 | 1 |
public Collection getComponents() {
|
31 | 1 |
return Collections.EMPTY_SET;
|
32 |
} |
|
33 |
|
|
34 | 1 |
public Collection getComponentKeys() {
|
35 | 1 |
return Collections.EMPTY_SET;
|
36 |
} |
|
37 |
|
|
38 | 1 |
public void instantiateComponents() throws PicoInstantiationException { |
39 |
} |
|
40 |
|
|
41 | 1 |
public Object getComponentMulticaster() {
|
42 | 1 |
return null; |
43 |
} |
|
44 |
|
|
45 | 2 |
public Object getComponentMulticaster(boolean callInInstantiationOrder, boolean callUnmanagedComponents) { |
46 | 2 |
return null; |
47 |
} |
|
48 |
} |
|
49 |
|
|
50 |
|
|