Closed hsluoyz closed 3 years ago
@shink
@hsluoyz OK, I will.
@shink add void setUpdateCallback(Consumer
like this
default void setUpdateCallback(Consumer<String> func) {};
so any watcher library deps jcasbin nee't rewrite .just upgrade version if one want implement callback with args just override it
@rongfengliang Yes, it's a good idea. But if the user calls this method and finds it blank, it may be misleading. We should remind the user to implement it. (There may exist third-party watchers.) @hsluoyz What do you think?
@shink for default method implement . we can show some log message contains how to implement it
@rongfengliang It's a good idea! Thank you for your suggestion.
https://github.com/casbin/jcasbin/issues/201#issuecomment-864574337