org.apache.tapestry5.ioc.internal.services
Class AdvisedMethodInvocationBuilder

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.services.AdvisedMethodInvocationBuilder

public class AdvisedMethodInvocationBuilder
extends java.lang.Object

Manages a single method of an advised service, responsible for constructing a subclass of AbstractInvocation.


Constructor Summary
AdvisedMethodInvocationBuilder(ClassFactory classFactory, java.lang.Class serviceInterface, java.lang.reflect.Method method)
           
 
Method Summary
 void addAdvice(MethodAdvice advice)
           
 void commit(ClassFab interceptorClassFab, java.lang.String delegateFieldName, ConstantInjector injector)
          Invoked at the end of construction of the interceptor to intercept the method invocation and hook it into the advice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvisedMethodInvocationBuilder

public AdvisedMethodInvocationBuilder(ClassFactory classFactory,
                                      java.lang.Class serviceInterface,
                                      java.lang.reflect.Method method)
Method Detail

addAdvice

public void addAdvice(MethodAdvice advice)

commit

public void commit(ClassFab interceptorClassFab,
                   java.lang.String delegateFieldName,
                   ConstantInjector injector)
Invoked at the end of construction of the interceptor to intercept the method invocation and hook it into the advice.

Parameters:
interceptorClassFab - classfab for the service interceptor under construction
injector - allows constant values to be injected into the interceptor class as final fields


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