org.apache.tapestry5.ioc
Interface MethodAdviceReceiver

All Known Subinterfaces:
AspectInterceptorBuilder<T>
All Known Implementing Classes:
AspectInterceptorBuilderImpl

public interface MethodAdviceReceiver

Interface used with service advisor methods to define advice. Allows advice on specific methods, or on all methods.


Method Summary
 void adviseAllMethods(MethodAdvice advice)
          Advises all methods of the interface with the given advice.
 void adviseMethod(java.lang.reflect.Method method, MethodAdvice advice)
          Adds advice for a specific method of the aspect interceptor being constructed.
 java.lang.Class getInterface()
          Returns the interface for which methods may be advised.
 

Method Detail

adviseMethod

void adviseMethod(java.lang.reflect.Method method,
                  MethodAdvice advice)
Adds advice for a specific method of the aspect interceptor being constructed.

Parameters:
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.

adviseAllMethods

void adviseAllMethods(MethodAdvice advice)
Advises all methods of the interface with the given advice.


getInterface

java.lang.Class getInterface()
Returns the interface for which methods may be advised.

Since:
5.1.0.0
See Also:
MethodIterator


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.