1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
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 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| public class EmptyPicoContainer implements PicoContainer, Serializable { |
28 |
0
| public Object getComponentInstance(Object componentKey) {
|
29 |
0
| return null;
|
30 |
| } |
31 |
| |
32 |
0
| public Object getComponentInstanceOfType(Class componentType) {
|
33 |
0
| return null;
|
34 |
| } |
35 |
0
| public List getComponentInstances() {
|
36 |
0
| return Collections.EMPTY_LIST;
|
37 |
| } |
38 |
| |
39 |
0
| public PicoContainer getParent() {
|
40 |
0
| return null;
|
41 |
| } |
42 |
0
| public ComponentAdapter getComponentAdapter(Object componentKey) {
|
43 |
0
| return null;
|
44 |
| } |
45 |
| |
46 |
0
| public ComponentAdapter getComponentAdapterOfType(Class componentType) {
|
47 |
0
| return null;
|
48 |
| } |
49 |
| |
50 |
0
| public Collection getComponentAdapters() {
|
51 |
0
| return Collections.EMPTY_LIST;
|
52 |
| } |
53 |
| |
54 |
0
| public List getComponentAdaptersOfType(Class componentType) {
|
55 |
0
| return Collections.EMPTY_LIST;
|
56 |
| } |
57 |
| |
58 |
0
| public void verify() {}
|
59 |
| |
60 |
0
| public void accept(PicoVisitor visitor) { }
|
61 |
| |
62 |
0
| public List getComponentInstancesOfType(Class componentType) {
|
63 |
0
| return Collections.EMPTY_LIST;
|
64 |
| } |
65 |
| |
66 |
0
| public void start() {}
|
67 |
0
| public void stop() {}
|
68 |
0
| public void dispose() {}
|
69 |
| } |