1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| package org.picocontainer.defaults; |
12 |
| |
13 |
| import java.io.Serializable; |
14 |
| import java.lang.reflect.Constructor; |
15 |
| import java.lang.reflect.Method; |
16 |
| |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| public class NullComponentMonitor implements ComponentMonitor, Serializable { |
22 |
| private static NullComponentMonitor instance; |
23 |
| |
24 |
860
| public void instantiating(Constructor constructor) {
|
25 |
| } |
26 |
| |
27 |
852
| public void instantiated(Constructor constructor, long beforeTime, long duration) {
|
28 |
| } |
29 |
| |
30 |
8
| public void instantiationFailed(Constructor constructor, Exception e) {
|
31 |
| } |
32 |
| |
33 |
258
| public void invoking(Method method, Object instance) {
|
34 |
| } |
35 |
| |
36 |
252
| public void invoked(Method method, Object instance, long duration) {
|
37 |
| } |
38 |
| |
39 |
6
| public void invocationFailed(Method method, Object instance, Exception e) {
|
40 |
| } |
41 |
| |
42 |
2166
| public static synchronized NullComponentMonitor getInstance() {
|
43 |
2166
| if (instance == null) {
|
44 |
86
| instance = new NullComponentMonitor();
|
45 |
| } |
46 |
2166
| return instance;
|
47 |
| } |
48 |
| } |