Package aQute.lib.aspects
Class Aspects
- java.lang.Object
-
- aQute.lib.aspects.Aspects
-
public class Aspects extends java.lang.Object
Minute 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 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
-
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
-
-