[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [e4-dev] Some questions
|
Am 20.02.11 09:04, schrieb Thomas Kratz:
> Hi all,
>
> I'm coming back to my e4 porting efforts and hope that I some last get
> problems fixed.
> But then I have some questions regarding the new architecture.
>
> Can I get any OSGi Service injected ? I have some Spring httpinvokers,
> that I could publish through spring dm as osgi services. It could get
> rid of some static singletons if I could get those beans injected anyhow.
Yes. Every service registered in the OSGi-Service registry is subject to
injection. The only currently not supported usecase is when the services
is not available at injection that you get it injected later on. There's
a proposal in a bugzilla how to solve this but I forgot the Bug-id.
>
> How would I publish something to the eclipseContext? At login time I
> create an XmppConnection thats used throughout the application (another
> static singleton). If above answer is yes I guess I should publish as an
> OSGi Service.
Like said before. Nothing special all needed is to register the service
in the OSGi-Service registry and while I have no idea about Spring-DM my
wild guess is that it does this.
>
> Are there any docs available about editors on e4 ? I have a couple of
> MultiPageFormEditors and I wonder how one would implement these on e4.
>
There's currently no editor replacement story for e4. We've started
expermenting with editors in the Simple-IDE source code but had other
things to work on.
IIRC you are using the compat layer so editors come for free. The only
other reference to write Editor-Like Parts by using e4-DI you can take a
look at my ModelEditor which is a multi-page like form editor.
Maybe we can extract interesting bits in future (like i've already done
with the forward compat layer) so that other can use it directly.
Tom
--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl geschaeftsfuehrer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5/1 A-6020 innsbruck phone ++43 512 935834