|
|||||||||||||||||||
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 (Cc) 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.PicoInstantiationException;
|
|
15 |
|
|
16 |
public class NullContainer implements PicoContainer { |
|
17 | 1 |
public boolean hasComponent(Class compType) { |
18 | 1 |
return false; |
19 |
} |
|
20 |
|
|
21 | 21 |
public Object getComponent(Class compType) {
|
22 | 21 |
return null; |
23 |
} |
|
24 |
|
|
25 | 1 |
public Object[] getComponents() {
|
26 | 1 |
return new Object[0]; |
27 |
} |
|
28 |
|
|
29 | 2 |
public Class[] getComponentTypes() {
|
30 | 2 |
return new Class[0]; |
31 |
} |
|
32 |
|
|
33 | 1 |
public void instantiateComponents() throws PicoInstantiationException { |
34 |
} |
|
35 |
} |
|
36 |
|
|
37 |
|
|