Thanks guys this has been a very big piece of tapestry I never really understood.
On Thursday, May 10, 2012, Howard Lewis Ship [via Tapestry] wrote: > Historically, constructor injection came first; direct field injection > (which uses reflection) came laster, in part because of student in one > of my workshops pointed out the inconsistency. > > I generally prefer constructor injection as well, since the field can > then be marked "final". That gives me a warm feeling inside. > > On Thu, May 10, 2012 at 12:26 PM, Lance Java <[hidden > email]<http://user/SendEmail.jtp?type=node&node=5701323&i=0>> > wrote: > > > Keep in mind that you don't need to use @Inject in your services. > Tapestry > > will use the constructor with the most arguments and will pass values > > matched by type (and annotations) from the registry. > > > > I prefer the constructor injection to private field injection as I can > test > > my services without needing tapestry or (nasty) reflection to initialize > > the service under test. > > > > On Thursday, 10 May 2012, George Christman <[hidden > > email]<http://user/SendEmail.jtp?type=node&node=5701323&i=1>> > wrote: > >> Thanks guys, I wasn't aware we could use tapestry inject outside of > pages > > and > >> components. > >> > >> -- > >> View this message in context: > > > http://tapestry.1045711.n5.nabble.com/Using-generics-in-tapestry-service-tp5700399p5700938.html > >> Sent from the Tapestry - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden > >> email]<http://user/SendEmail.jtp?type=node&node=5701323&i=2> > >> For additional commands, e-mail: [hidden > >> email]<http://user/SendEmail.jtp?type=node&node=5701323&i=3> > >> > >> > > > > -- > 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: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5701323&i=4> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5701323&i=5> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://tapestry.1045711.n5.nabble.com/Using-generics-in-tapestry-service-tp5700399p5701323.html > To unsubscribe from Using generics in tapestry service., click > here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5700399&code=Z2NocmlzdG1hbkBjYXJkYWRkeS5jb218NTcwMDM5OXwxNjMyOTYxMjA3> > . > NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York -- View this message in context: http://tapestry.1045711.n5.nabble.com/Using-generics-in-tapestry-service-tp5700399p5701615.html Sent from the Tapestry - User mailing list archive at Nabble.com.