|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AspectDecorator
A decorator used to create an interceptor that delegates each method's invocation to an MethodAdvice for advice. Advice can inspect or change method parameters, inspect or change
the method's return value, and inspect and change thrown exceptions (checked and unchecked).
| Method Summary | ||
|---|---|---|
|
build(java.lang.Class<T> serviceInterface,
T delegate,
MethodAdvice advice,
java.lang.String description)
Intercepts method invocations on the delegate and passes them through the provided aspect. |
|
|
createBuilder(java.lang.Class<T> serviceInterface,
T delegate,
java.lang.String description)
Creates a builder that can be used to create the interceptor. |
|
| Method Detail |
|---|
<T> T build(java.lang.Class<T> serviceInterface,
T delegate,
MethodAdvice advice,
java.lang.String description)
serviceInterface - defines the interface of the interceptor and delegatedelegate - the object on which methods will be invokedadvice - intercepts the method invocations on the delegatedescription - used as the toString() of the returned interceptor, unless toString() is part of the
service interface
<T> AspectInterceptorBuilder<T> createBuilder(java.lang.Class<T> serviceInterface,
T delegate,
java.lang.String description)
serviceInterface - defines the interface of the interceptor and the delegatedelegate - the object on which methods will be invokesdescription - used as the toString() of the interceptor unless toString() is part of the service
interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||