001 package org.shiftone.jrat.provider.silent;
002
003
004 import org.shiftone.jrat.core.MethodKey;
005 import org.shiftone.jrat.core.spi.MethodHandler;
006 import org.shiftone.jrat.core.spi.MethodHandlerFactory;
007 import org.shiftone.jrat.core.spi.RuntimeContext;
008
009
010 /**
011 * Class SilentMethodHandler
012 *
013 * @author jeff@shiftone.org (Jeff Drost)
014 */
015 public class SilentMethodHandler implements MethodHandler, MethodHandlerFactory {
016
017 private static final SilentMethodHandler INSTANCE = new SilentMethodHandler();
018 public static final MethodHandlerFactory HANDLER_FACTORY = INSTANCE;
019 public static final MethodHandler METHOD_HANDLER = INSTANCE;
020
021 public void onMethodError(Object obj, Object[] args, Throwable throwable) {
022 }
023
024
025 public void onMethodFinish(Object obj, long durationNanos, Throwable throwable) {
026 }
027
028
029 public void onMethodStart(Object obj) {
030 }
031
032
033 public MethodHandler createMethodHandler(MethodKey methodKey) {
034 return this;
035 }
036
037
038 public void startup(RuntimeContext context) {
039 }
040
041
042 public void shutdown() {
043 }
044 }