[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Incubator request for Extensions/Services Integration work
- From: "Stuart McCulloch" <mcculls@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 10:26:24 +0800
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gixtEGhGxsrxDo8KlE/EmmssbQYMibOcrPbvyL12TY4f4bEtG5X0TzNVO+4sMWQ46dHgVeQmE8d9n86nFkbflSbMVxsK7oM6zmL+fdEqQSM6rYFCRsbM5RpEv4dJKoesGmKHppXwamlwqqf0o7/Yc7PlcrSMSkY9Cc9jpIbO8Zw=
On 27/03/2008, Neil Bartlett <njbartlett@xxxxxxxxx> wrote:
I have been doing some investigative work recently in the area of
integrating extensions with OSGi services. As a result of this, I have
developed a small framework for dynamically injecting services into
extension objects according to metadata defined via the extension
registry. As a very simple example, suppose we have an extension
object (e.g. a ViewPart) which has a method
setLogReader(LogReaderService). We can declare an "injected bean"
extension as follows:
And then the actual view extension as:
This results in all objects instantiated from the log view extension
being dynamically injected with the log reader service as it becomes
available (and un-injected when it goes away).
I would like to request a work area under the Equinox incubator as a
home for this code so that others can test it and experiment with this
and other approaches to the extensions/services integration problem.
I enjoyed your talk on this at EclipseCon and
would be interested in helping out, if needed.
equinox-dev mailing list