12 lines
522 B
Java
12 lines
522 B
Java
package javasdk;
|
|
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
|
// TODO: interface? or abstract class?
|
|
public abstract class Hook<T> {
|
|
public void before(HookContext<T> ctx, ImmutableMap<String, Object> hints) {}
|
|
public void after(HookContext<T> ctx, FlagEvaluationDetails<T> details, ImmutableMap<String, Object> hints) {}
|
|
public void error(HookContext<T> ctx, Exception error, ImmutableMap<String, Object> hints) {}
|
|
public void finallyAfter(HookContext<T> ctx, ImmutableMap<String, Object> hints) {}
|
|
}
|