1 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 21 public class NullComponentMonitor implements ComponentMonitor, Serializable { 22 private static NullComponentMonitor instance; 23 24 public void instantiating(Constructor constructor) { 25 } 26 27 public void instantiated(Constructor constructor, long beforeTime, long duration) { 28 } 29 30 public void instantiationFailed(Constructor constructor, Exception e) { 31 } 32 33 public void invoking(Method method, Object instance) { 34 } 35 36 public void invoked(Method method, Object instance, long duration) { 37 } 38 39 public void invocationFailed(Method method, Object instance, Exception e) { 40 } 41 42 public static synchronized NullComponentMonitor getInstance() { 43 if (instance == null) { 44 instance = new NullComponentMonitor(); 45 } 46 return instance; 47 } 48 } 49 | Popular Tags |