Thanks Thiago, The order in which the @EagerLoad services are instantiated is not important (I mean, the order between them); they just need to be instantiated after a @Startup method that initializes something for them, because those services use a utility class with static methods that requires someome to call its init() method. On Apr 19, 2012 10:02 PM, "Thiago H de Paula Figueiredo [via Tapestry]" < ml-node+s1045711n5652661...@n5.nabble.com> wrote:
> On Thu, 19 Apr 2012 16:38:09 -0300, Ferran Maylinch > <[hidden email] <http://user/SendEmail.jtp?type=node&node=5652661&i=0>> > wrote: > > > Thanks Lance. > > But we have several "@EagerLoads" so we would have to call all their > > init() methods! > > I'd say that if you need specific service initiation ordering, you should > > contribute to the RegistryStartup service, which has an ordered > configuration, instead of using @EagerLoad. > > -- > 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: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5652661&i=1> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5652661&i=2> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5652661.html > To unsubscribe from Why @EagerLoad services come before @Startup > methods?, click > here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5651302&code=ZmVycmFubWF5bGluY2hAZ21haWwuY29tfDU2NTEzMDJ8LTIwNzk2MDg1MzA=> > . > 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> > -- View this message in context: http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5652888.html Sent from the Tapestry - User mailing list archive at Nabble.com.