public interface MethodAdviceReceiver extends AnnotationAccess
Modifier and Type | Method and Description |
---|---|
void |
adviseAllMethods(MethodAdvice advice)
Deprecated.
Deprecated in 5.3, to be removed in 5.4. Replaced with
adviseAllMethods(org.apache.tapestry5.plastic.MethodAdvice) . |
void |
adviseAllMethods(MethodAdvice advice)
Advises all methods of the interface with the given advice.
|
void |
adviseMethod(Method method,
MethodAdvice advice)
Deprecated.
Deprecated in 5.3, to be removed in 5.4. Replaced with
adviseMethod(Method, org.apache.tapestry5.plastic.MethodAdvice) |
void |
adviseMethod(Method method,
MethodAdvice advice)
Adds advice for a specific method of the aspect interceptor being constructed.
|
Class |
getInterface()
Returns the interface for which methods may be advised.
|
<T extends Annotation> |
getMethodAnnotation(Method method,
Class<T> annotationType)
Gets an annotation from a method, via
AnnotationAccess.getMethodAnnotationProvider(String, Class...) . |
getClassAnnotationProvider, getMethodAnnotationProvider
void adviseMethod(Method method, MethodAdvice advice)
adviseMethod(Method, org.apache.tapestry5.plastic.MethodAdvice)
method
- 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.void adviseAllMethods(MethodAdvice advice)
adviseAllMethods(org.apache.tapestry5.plastic.MethodAdvice)
.void adviseMethod(Method method, MethodAdvice advice)
method
- 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.void adviseAllMethods(MethodAdvice advice)
Class getInterface()
MethodIterator
<T extends Annotation> T getMethodAnnotation(Method method, Class<T> annotationType)
AnnotationAccess.getMethodAnnotationProvider(String, Class...)
.T
- type of annotationmethod
- method to searchannotationType
- type of annotationCopyright © 2003-2012 The Apache Software Foundation.