org.apache.tapestry5.ioc.internal.services
Class AspectInterceptorBuilderImpl<T>

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.services.AspectInterceptorBuilderImpl<T>
All Implemented Interfaces:
AspectInterceptorBuilder<T>

public class AspectInterceptorBuilderImpl<T>
extends Object
implements AspectInterceptorBuilder<T>


Constructor Summary
AspectInterceptorBuilderImpl(ClassFactory classFactory, Class<T> serviceInterface, T delegate, String description)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectInterceptorBuilderImpl

public AspectInterceptorBuilderImpl(ClassFactory classFactory,
                                    Class<T> serviceInterface,
                                    T delegate,
                                    String description)
Method Detail

adviseMethod

public void adviseMethod(Method method,
                         MethodAdvice advice)
Description copied from interface: AspectInterceptorBuilder
Adds advice for a specific method of the aspect interceptor being constructed.

Specified by:
adviseMethod in interface AspectInterceptorBuilder<T>
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

public void adviseAllMethods(MethodAdvice advice)
Description copied from interface: AspectInterceptorBuilder
Advises all methods of the interface with the given advice.

Specified by:
adviseAllMethods in interface AspectInterceptorBuilder<T>

build

public T build()
Description copied from interface: AspectInterceptorBuilder
Builds and returns the interceptor. Any methods that have not been advised will become "pass thrus".

Specified by:
build in interface AspectInterceptorBuilder<T>


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