|
|
Re: Using the e4 dependency injection implementation outside e4 [message #508470 is a reply to message #508350] |
Mon, 18 January 2010 23:38 |
|
Thanks for the tips. :-)
On 18.01.2010 06:05, Paul Webster wrote:
> Lars Vogel wrote:
>> Hello,
>>
>> I would like to use the DI implementation of e4 outside of e4 (similar
>> to Google Guice).
>> Is that possible? If yes, any pointer how to do this?
>
> Pointers, probably not :-)
>
> But it should be usable with 3 plugins: org.eclipse.e4.core.services,
> org.eclipse.e4.core.services.annotations, and javax.inject
>
> org.eclipse.e4.core.services.context.spi.ContextInjectionFac tory to
> inject and make (instantiate and then inject) an object. It also
> supports an "invoke" (allows you to call a method with inject
> parameters). Then all you need is an IEclipseContext full of values from
> org.eclipse.e4.core.services.context.EclipseContextFactory :-)
>
> Later,
> PW
>
>
|
|
|
|
Re: Using the e4 dependency injection implementation outside e4 [message #567767 is a reply to message #508350] |
Tue, 19 January 2010 04:12 |
|
Thanks for the tips. :-)
On 18.01.2010 06:05, Paul Webster wrote:
> Lars Vogel wrote:
>> Hello,
>>
>> I would like to use the DI implementation of e4 outside of e4 (similar
>> to Google Guice).
>> Is that possible? If yes, any pointer how to do this?
>
> Pointers, probably not :-)
>
> But it should be usable with 3 plugins: org.eclipse.e4.core.services,
> org.eclipse.e4.core.services.annotations, and javax.inject
>
> org.eclipse.e4.core.services.context.spi.ContextInjectionFac tory to
> inject and make (instantiate and then inject) an object. It also
> supports an "invoke" (allows you to call a method with inject
> parameters). Then all you need is an IEclipseContext full of values from
> org.eclipse.e4.core.services.context.EclipseContextFactory :-)
>
> Later,
> PW
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03878 seconds