« Return to Thread: @PageActivationContext vs. ComponentMethodAdvice

@PageActivationContext vs. ComponentMethodAdvice

by Howard Lewis Ship :: Rate this Message:

Reply to Author | View in Thread

Igor,

Earlier I had stated that you should have found a way to use
ComponentMethodAdvice, advising the dispatchComponentEvent() method,
to implement support for the @PageActivationContext annotation.

I now think I was in error; the ComponentMethodAdvice approach only
works if the advice can be implemented in terms of the public API of
the component, or the method parameters.  @PageActivationContext
requires access to the fields of the component.  Short of changing
ComponentMethodAdvice to allow access to private fields of the advised
component, it simply is not a good fit.



--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: @PageActivationContext vs. ComponentMethodAdvice

LightInTheBox - Buy quality products at wholesale price!