I think the key here at least for me is that there is one entry point for most common things. The fact that the IDE takes you there and give you javadocs as you explore the services is an added bonus. Just makes things easier and more obvious. @Inject is nice but tapestry also has @Contribute and other inject variants. I for one am having to constantly field questions on how do I do this and it's usually a question of doing an inject. The API will prevent those questions from happening in the first place.
On Aug 24, 2011, at 12:14 PM, Chris Poulsen <mailingl...@nesluop.dk> wrote: > Hi, > > On one hand I can see that access to all services in ones IDE is a nice > thought, on the other hand I fail to see how it would help you to pick the > service you need; if you don't know what you are looking for... > > Going directly into the javadocs and checking all classes that sound > relevant may be just as good a strategy if you're lost and that would > probably provide more value than trailing through a bunch of getters in the > editor. > > On the other hand; if you know what you are looking for then you can usually > just inject it instead of searching for services that provide it, inject the > service and manually retrieve it. > > -- > Chris > > > > On Wed, Aug 24, 2011 at 5:55 PM, Lenny Primak <lpri...@hope.nyc.ny.us>wrote: > >> I really like the TapestryCoreServices idea. Inject one object and have >> access to all the core services. >> >> This approach would make a lot more things more obvious in tapestry. >> I think tapestry is a little lacking when it comes to the obviousness of >> doing certain things. >> >> >> >> On Aug 24, 2011, at 10:05 AM, "Thiago H. de Paula Figueiredo" < >> thiag...@gmail.com> wrote: >> >>> On Wed, 24 Aug 2011 10:50:54 -0300, Chris Poulsen < >> mailingl...@nesluop.dk> >>> wrote: >>> >>>> Hi, >>>> >>>> Can't you just inject it? >>>> >>>> @Inject >>>> private ServletContext servletContext; >>> >>> I like this idea, as we can already inject HttpServletRequest and >>> HttpServletResponse. :) >>> >>> -- >>> 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: dev-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: dev-h...@tapestry.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: dev-h...@tapestry.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org