Hi,

on EclipseCon Wim, Sopot and I discussed how we could implement @Adapt as
discussed earlier in this group. As a reminder we were discussion to create
a new annotations to do the adaption automatically like in the following
example:

-----------
@Inject
public void someMethod(@Optional @Adapt
@Named(IServiceConstants.Active_Selection)
 Person person)
----------

I think it would be useful if we could use an ExtendedObjectSupplier for
this, so that the core of the DI framework stays simple and lean.
Unfortunately AFAIK ExtendedObjectSupplier does not provide access to the
current context.

Is this by design or would it be possible to pass the current context to
the ExtendedObjectSupplier?

Best regards, Lars
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to