On Mon, 05 Sep 2011 06:58:59 -0300, jack <jrmpatw...@gmail.com> wrote:

Hi All,

Hi!

I'm trying to advise the PageLoader service because we have some custom page caching requirements.

It won't work. First, it's an internal service, so you shouldn't rely on it at all. Second, and most important, PageLoader just instantiates pages and it's never used while rendering them, and I guess you want to cache page renders.

I'd try to implement it as a mixin that is automatically applied to all pages automatically.

     @Advise(serviceInterface = ComponentAssemblerSource.class)

Shouldn't it be @Advise(serviceInterface = PageLoader.class)?

     @Match("PageLoader")

You don't need to use both @Advise(serviceInterface = ?) and @Match together.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.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