Actually, decorators are used when you know, and compile time, what
interface the service implements and you want to provide a specific
object, implementing that interface, as the interceptor (the wrapper
around the core service implementation).

Advice is used when you want to dynamically analyze the service
interface, whatever it is, adding ComponentMethodAdvice to individual
methods.

Making specific changes to a known interface is easier using
decoration, such as extending a known existing service to add new
features.  On the other hand, wide-ranging concerns (such as logging
or transaction management or security) can be handled best using
advice.

Unfortunately, they don't mix, due to the evolution of the underlying
APIs (decoration was implemented first, advice came a couple of years
later). The end result is that all decoration executes before any
advice, with the core service implementation being at the end of the
chain.

On Thu, Jun 24, 2010 at 3:24 AM, Kristian Marinkovic
<kristian.marinko...@porsche.co.at> wrote:
> Hi Christian,
>
> Advices have been introduced in 5.1 to replace decorators.
> please see:
> http://tapestry.apache.org/tapestry5.1/tapestry-ioc/advice.html
>
> the 5.2-SNAPSHOT documentation does not state that decorators are
> not supported anymore. the last time i was playing with 5.2 (some weeks
> ago)
> my decorators worked.
>
> g,
> kris
>
>
>
> Von:    Christian Koller <christian.kol...@net-m.ch>
> An:     users@tapestry.apache.org
> Datum:  23.06.2010 16:38
> Betreff:        decorateClientInfrastructure not called anymore
>
>
>
> Hello everyone
>
> Since we updated the version of tapestry from 5.1.0.5 to 5.2.0-SNAPSHOT
> the decorate methods in the module class are not called anymore.
> Is there a new concept to decorate a service or is it a bug?
>
> Please let me know if you know something.
> Thanks
> chris
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to