Package aQute.lib.aspects
Class Aspects
- java.lang.Object
-
- aQute.lib.aspects.Aspects
-
public class Aspects extends java.lang.ObjectMinute library to do some aspect oriented programming without dragging in the world. Should not be used for high performance things.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAspects.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 classAspects.Invocation
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectDEFAULT(package private) static java.lang.Object[]EMPTYstatic java.lang.ObjectNORETURN(package private) static java.lang.invoke.MethodHandles.LookuppublicLookup
-
Constructor Summary
Constructors Constructor Description Aspects()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Aspects.InterceptBuilder<T>intercept(java.lang.Class<T> type, T delegate)Create an intercepting proxy using a builder
-
-
-
Method Detail
-
intercept
public static <T> Aspects.InterceptBuilder<T> intercept(java.lang.Class<T> type, T delegate)
Create an intercepting proxy using a builder- Parameters:
type- the type of the proxydelegate- the delegate to delegate to- Returns:
- a builder
-
-