We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dfe0a3 commit 3ba3f2cCopy full SHA for 3ba3f2c
lib/src/main/java/javasdk/Hook.java
@@ -1,9 +1,9 @@
1
package javasdk;
2
3
// TODO: interface? or abstract class?
4
-public interface Hook<T> {
5
- void before(HookContext<T> ctx);
6
- void after(HookContext<T> ctx, FlagEvaluationDetails<T> details);
7
- void error(HookContext<T> ctx, Exception error);
8
- void afterAll(HookContext<T> ctx);
+public abstract class Hook<T> {
+ void before(HookContext<T> ctx) {}
+ void after(HookContext<T> ctx, FlagEvaluationDetails<T> details) {}
+ void error(HookContext<T> ctx, Exception error) {}
+ void afterAll(HookContext<T> ctx) {}
9
}
0 commit comments