1 10 11 package org.picocontainer.monitors; 12 13 import java.io.Serializable ; 14 import java.lang.reflect.Constructor ; 15 import java.lang.reflect.Method ; 16 17 import org.picocontainer.ComponentMonitor; 18 19 26 public class NullComponentMonitor implements ComponentMonitor, Serializable { 27 28 private static NullComponentMonitor instance; 29 30 public void instantiating(Constructor constructor) { 31 } 32 33 public void instantiated(Constructor constructor, long duration) { 34 } 35 36 public void instantiationFailed(Constructor constructor, Exception e) { 37 } 38 39 public void instantiated(Constructor constructor, Object instantiated, Object [] injected, long duration) { 40 } 41 42 public void invoking(Method method, Object instance) { 43 } 44 45 public void invoked(Method method, Object instance, long duration) { 46 } 47 48 public void invocationFailed(Method method, Object instance, Exception e) { 49 } 50 51 public void lifecycleInvocationFailed(Method method, Object instance, RuntimeException cause) { 52 } 53 54 public static synchronized NullComponentMonitor getInstance() { 55 if (instance == null) { 56 instance = new NullComponentMonitor(); 57 } 58 return instance; 59 } 60 } 61 | Popular Tags |