Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[e4-dev] ExtendedObjectSupplier and access to the context

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

Back to the top