1 package jfun.yan.monitoring; 2 3 import java.beans.PropertyDescriptor ; 4 import java.lang.reflect.Constructor ; 5 import java.lang.reflect.Method ; 6 7 15 public class NopComponentMonitor implements ComponentMonitor { 16 17 public void invocationFailed(Object obj, Method mtd, Object [] args, Throwable err, long duration) { 18 20 } 21 22 public void invoked(Object obj, Method mtd, Object [] args, Object result, long duration) { 23 25 } 26 27 public void invoking(Object obj, Method mtd, Object [] args) { 28 30 } 31 32 public void propertySet(Object obj, PropertyDescriptor desc, Object val, long duration) { 33 35 } 36 37 public void propertySetFailed(Object obj, PropertyDescriptor desc, Object val, Throwable err, long duration) { 38 40 } 41 42 public void propertySetting(Object obj, PropertyDescriptor desc, Object val) { 43 45 } 46 47 public void propertyGetFailed(Object obj, PropertyDescriptor desc, int ind, Throwable err, long duration) { 48 50 } 51 52 public void propertyGetting(Object obj, PropertyDescriptor desc, int ind) { 53 55 } 56 57 public void propertyGot(Object obj, PropertyDescriptor desc, int ind, Object val, long duration) { 58 60 } 61 62 public void propertyGetFailed(Object obj, PropertyDescriptor desc, Throwable err, long duration) { 63 65 } 66 67 public void propertyGetting(Object obj, PropertyDescriptor desc) { 68 70 } 71 72 public void propertyGot(Object obj, PropertyDescriptor desc, Object result, long duration) { 73 75 } 76 77 public void propertySet(Object obj, PropertyDescriptor desc, int ind, Object val, long duration) { 78 80 } 81 82 public void propertySetFailed(Object obj, PropertyDescriptor desc, int ind, Object val, Throwable err, long duration) { 83 85 } 86 87 public void propertySetting(Object obj, PropertyDescriptor desc, int ind, Object val) { 88 90 } 91 92 public void constructed(Constructor ctor, Object [] args, Object instance, long duration) { 93 95 } 96 97 public void constructing(Constructor ctor, Object [] args) { 98 100 } 101 102 public void constructionFailed(Constructor ctor, Object [] args, Throwable e, long duration) { 103 105 } 106 107 } 108 | Popular Tags |