public class AspectInterceptorBuilderImpl<T> extends AbtractAspectInterceptorBuilder<T>
annotationAccess| Constructor and Description |
|---|
AspectInterceptorBuilderImpl(AnnotationAccess annotationAccess,
PlasticProxyFactory plasticProxyFactory,
Class<T> serviceInterface,
T delegate,
String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
adviseAllMethods(MethodAdvice advice)
Advises all methods of the interface with the given advice.
|
void |
adviseMethod(Method method,
MethodAdvice advice)
Adds advice for a specific method of the aspect interceptor being constructed.
|
T |
build()
Builds and returns the interceptor.
|
Class |
getInterface()
Returns the interface for which methods may be advised.
|
getClassAnnotationProvider, getMethodAnnotation, getMethodAnnotationProviderpublic AspectInterceptorBuilderImpl(AnnotationAccess annotationAccess, PlasticProxyFactory plasticProxyFactory, Class<T> serviceInterface, T delegate, String description)
public void adviseMethod(Method method, MethodAdvice advice)
MethodAdviceReceivermethod - method (of the interface for which an interceptor is being constructed) to be advised. Multiple
advice is allowed for a single method; the advice will be executed in the order it is added.advice - the advice for this particular method. Advice must be threadsafe.public void adviseAllMethods(MethodAdvice advice)
MethodAdviceReceiveradvice - the method advice to be applied.public Class getInterface()
MethodAdviceReceiverpublic T build()
AspectInterceptorBuilder5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.