On Mon, 17 Feb 2014 17:31:53 -0300, Ilya Obshadko <ilya.obsha...@gmail.com> wrote:

I understand how to do that with service advisors, but decoration remains
unclear. How do I override a single method from the interface using
decoration? Could you provide a brief example?

See http://tapestry.apache.org/tapestry-ioc-decorators.html, AspectDecorator, its method AspectInterceptorBuilder createBuilder(Class<T> serviceInterface, T delegate, String description), AspectInterceptorBuilder, which is a subinterface of MethodAdviceReceiver, which has the adviseMethod(Method, MethodAdvice) method.

Summary: in almost the same way as advice.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to