Hi Alfie,
there is the Service "ObjectLocator". the Registry extends this Service. It has
all the functionality you need (getService, autobuild...)
As far as i see, you can't directly inject this service in pages, but i use it
in a "contribute" method in my modules (i use that to inject services into my
quartz job objects ;) nice thing btw)
[code]
public static void contributeQuartzSchedulerManager(final
OrderedConfiguration<JobSchedulingBundle> configuration, final ObjectLocator
objectLocator) {
configuration.add("mycreon.core.ssoCleanupJob", new
JobSchedulingBundle() {
// job scheduling bundle..
});
}
[/code]
I think you should be able to use it in the service builder methods of your
module, too. but i haven't tried this - i would apreciate if you tell if you
tested this out.
felix
Alfie Kirkpatrick schrieb:
Hi, is there a way to do this? I am building a service for jBPM in my
module and it needs to lookup services in the registry. I could do this
by hacking TapestryFilter and putting the registry in a singleton but am
wondering if there is a neater way. I could also explicitly pass
services into my jBPM builder as configuration and create a
'mini-registry' of the services my jBPM process will need, but that's
extra work too. I may need to do this anyway to support spring-like
named service beans which the jBPM code also uses (iterable by name).
I know that either way I will have a problem with per-thread services
but am just playing around with ideas at the moment.
Thanks, Alfie.
--
Felix Gonschorek
GG-Media
Kirchstr. 18
69115 Heidelberg
Tel: +49 6221 187 18 10
Fax: +49 6221 187 18 99
Mobil: +49 176 2234 1338
fe...@gg-media.biz
http://www.gg-media.biz
Vertretungsberechtigte Gesellschafter:
Felix Gonschorek & Jochen Greiner
Umsatzsteuer-Identifikationsnummer
gemäß § 27a Umsatzsteuergesetz:
DE232906440
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org