Unico Hommes wrote:

Sylvain Wallez wrote:


<snip/>

An OSGi "bundle" (that's the term for the deployment unit) can provide several services: a "BundleActivator" class inside the bundle registers the provided services (there can be several) when the bundle is loaded.

Registering a service consists in registering an instance of the service interface with additionnal properties that describe the service. The lookup mechanism then allows to select a particular implementation of the service depending on property values, by using a simple LDAP-like query language.



Hmm, I like this. This is something that is still missing from Avalon IMHO: richer service lookup semantics. I've had several instances where I needed this.



Having the "hint" as an Object in ComponentSelector was exactly for this purpose. IIRC, there even was a Query class that was discussed some time.


Can you give more details about your use case?

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to