Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] OSGI Injection with LDAP Filter

Hi,

On 11.01.17 13:58, Tom Schindl wrote:
> Hi,
> 
> Well we never implemented this.

And now I have - https://bugs.eclipse.org/bugs/show_bug.cgi?id=510326

> 
> In e4 proper the problem is that the DI-Container does not know about
> OSGi-Services as this is handled by Root-IEclipseContext where
> informations like the one you want are not available anymore.
> 
> In e(fx)clipse we have a special annotation with a ExtenedObjectSupplier
> who supports more OSGi semantics:
> * support for ServiceFactory (because the requestor bundle of the
>   service is known)
> * support for List of services
> * support for dynamics (eg if a higher ranked service comes along)
> 
> What we don't support as of now:
> * static service filters eg through @Service(filter="&(....)")
> 

and now we do!

> What we can't support (or at least I don't have a idea how to do it
> right now)
> * dynamic service filters which is something I don't think can be
>   supported at all because all values need to be compile time constants
> 

Never say never - even this UC is now support and it is super cool. See
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/runtime/org.eclipse.fx.core.di.context.tests/src/org/eclipse/fx/core/di/context/tests/ServiceSupplierTestCase.java#n64

Tom

-- 
Thomas Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
http://www.bestsolution.at/
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck


Back to the top