For example: core.getServiceFiter().contribute(myTimingFilter) core.getComponentResources().xxx(); core.getApplicationDefaults.set(); core.getJavaScriptSupport().importLibrary(); core.getFormSupport().xxx();
Basically, an interface that makes up 'core' services. Obviously, not complete but I think the you can get the idea here. Basically, a simple, one entry-point into the guts of tapestry via an API that's well defined rather than having to hunt for cookbooks/javadocs/example code, etc. On Aug 24, 2011, at 2:01 PM, Thiago H. de Paula Figueiredo wrote: > On Wed, 24 Aug 2011 14:49:36 -0300, Lenny Primak <lpri...@hope.nyc.ny.us> > wrote: > >> I think the key here at least for me is that there is one entry point for >> most common things. > > Then there's a problem: defining what is the most common things. > >> @Inject is nice but tapestry also has @Contribute and other inject variants. > > @Contribute is not used for injection at all. There's @Inject (used in at > least 99% of the time) and @InjectService (very seldomly used). > @InjectComponent, @InjectContainer are not related to dependency injection at > all. > >> 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. > > How would this API look like? What API you would use as inspiration? There > isn't a single definition of API nor just one way of architecting one. > > -- > 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