public class Aspects
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Aspects.InterceptBuilder<T>
A builder to create a proxy that delegates to another object but can
intercept calls, put something before, after and around calls.
|
static class |
Aspects.Invocation |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
DEFAULT |
(package private) static java.lang.Object[] |
EMPTY |
static java.lang.Object |
NORETURN |
(package private) static java.lang.invoke.MethodHandles.Lookup |
publicLookup |
| Constructor and Description |
|---|
Aspects() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Aspects.InterceptBuilder<T> |
intercept(java.lang.Class<T> type,
T delegate)
Create an intercepting proxy using a builder
|
static java.lang.invoke.MethodHandles.Lookup publicLookup
static final java.lang.Object[] EMPTY
public static final java.lang.Object NORETURN
public static final java.lang.Object DEFAULT
public static <T> Aspects.InterceptBuilder<T> intercept(java.lang.Class<T> type, T delegate)
type - the type of the proxydelegate - the delegate to delegate to