Since I'm sticking this in a superclass to be inherited by many pages, I'll pretend it is slightly more efficient to return the .class (which may not be true at all).
It is indeed less code. :-) Thanks Thiago! mrg On Fri, Sep 18, 2009 at 4:32 PM, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > Em Fri, 18 Sep 2009 17:28:03 -0300, Michael Gentry <mgen...@masslight.net> > escreveu: > >> Initially I was thinking I might need to set some values in my >> SessionTimeout page, but now I'm not sure if I'll do that. I'm >> assuming returning SessionTimeout.class will be more efficient than >> injecting the page? > > I don't know about performance, but returning SessionTimeout.class doesn't > need a private field annotated with @InjectPage. A little bit less code. :) > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org