Em Mon, 30 Mar 2009 13:25:00 -0300, Daniel Jones <[email protected]>
escreveu:
I want to inject a service into EmailArchiveImporter.
If EmailArchiveImporter is a Tapestry service, normal service injection
applies. If it isn't and you don't want to make it a service, just add the
needed services as parameters to your method:
public static void
contributeQuartzSchedulerManager(OrderedConfiguration<JobSchedulingBundle>
configuration, SomeService someService) {
configuration.add("importEmailToArchive", new
ImportEmailToArchiveBundle(new EmailArchiveImporter(someService)));
}
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]