Package | Description |
---|---|
aQute.lib.aspects | |
aQute.lib.exceptions |
Modifier and Type | Method and Description |
---|---|
Aspects.InterceptBuilder<T> |
Aspects.InterceptBuilder.after(BiFunctionWithException<Aspects.Invocation,java.lang.Object,java.lang.Object> after)
Provide a function that is called after the method is called.
|
Aspects.InterceptBuilder<T> |
Aspects.InterceptBuilder.around(BiFunctionWithException<Aspects.Invocation,java.util.concurrent.Callable<java.lang.Object>,java.lang.Object> around)
Provide a function that is called with the method calling function.
|
<A,B,R> Aspects.InterceptBuilder<T> |
Aspects.InterceptBuilder.intercept(BiFunctionWithException<A,B,R> intercept,
java.lang.String name,
java.lang.Class<A> aType,
java.lang.Class<B> bType)
Intercept a two argument method call
|
Aspects.InterceptBuilder<T> |
Aspects.InterceptBuilder.onException(BiFunctionWithException<Aspects.Invocation,java.lang.Throwable,java.lang.Object> exception)
Called when an exception occurs
|
Modifier and Type | Method and Description |
---|---|
static <T,U,R> java.util.function.BiFunction<T,U,R> |
BiFunctionWithException.asBiFunction(BiFunctionWithException<T,U,R> unchecked) |
static <T,U,R> java.util.function.BiFunction<T,U,R> |
BiFunctionWithException.asBiFunctionOrElse(BiFunctionWithException<T,U,R> unchecked,
R orElse) |
static <T,U,R> java.util.function.BiFunction<T,U,R> |
BiFunctionWithException.asBiFunctionOrElseGet(BiFunctionWithException<T,U,R> unchecked,
java.util.function.Supplier<? extends R> orElseGet) |