|
||||||||||
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(Class<T> serviceInterface,
T delegate,
MethodAdvice advice,
String description)
Intercepts method invocations on the delegate and passes them through the provided aspect. |
|
|
createBuilder(Class<T> serviceInterface,
T delegate,
AnnotationAccess annotationAccess,
String description)
Creates a builder that can be used to create the interceptor. |
|
|
createBuilder(Class<T> serviceInterface,
T delegate,
String description)
Creates a builder that can be used to create the interceptor. |
Method Detail |
---|
<T> T build(Class<T> serviceInterface, T delegate, MethodAdvice advice, 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(Class<T> serviceInterface, T delegate, 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
<T> AspectInterceptorBuilder<T> createBuilder(Class<T> serviceInterface, T delegate, AnnotationAccess annotationAccess, String description)
serviceInterface
- defines the interface of the interceptor and the delegatedelegate
- the object on which methods will be invokesannotationAccess
- provides access to combined annotations of the underlying service
and service interfacedescription
- 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 |