

package cc.suitalk.ipcinvoker;

import cc.suitalk.ipcinvoker.activate.Debuggable;
import cc.suitalk.ipcinvoker.annotation.NonNull;

/**
 * Created by albieliang on 2018/4/2.
 */

public class Debugger {

    private static Debuggable sDebugger = new Debuggable() {

        @Override
        public boolean isDebug() {
            return false;
        }
    };

    public static void setDebuggable(@NonNull Debuggable debuggable) {
        if (debuggable == null) {
            return;
        }
        sDebugger = debuggable;
    }

    public static boolean isDebug() {
        return sDebugger.isDebug();
    }
}
