Skip to main content

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

On Tue, Apr 2, 2013 at 7:09 AM, Lars Vogel <lars.vogel@xxxxxxxxx> wrote:

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?

That's fundamentally by design.  The ExtendedObjectSuppliers are expected to reach externally to find their source/supply.

@Adapt is not so much another supplier but a modifier on the PrimaryObjectSupplier, in much the way that Optional is, no?

PW





--
Paul Webster
Hi floor.  Make me a sammich! - GIR

Back to the top