dev@jsr311.java.net

Re: JSR311: entity providers: when to inject dependencies on per request?

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Fri, 22 Aug 2008 17:58:37 +0200

>> When should the dependencies injected into entity providers? Before
>> the call of entityProvider.is[Readable|Writeable]() (then all
>> readers|writers must be injected into for every call), or only for
>> the provider to be use, that means after the call of
>> is[Readable|Writeable]()?
>>
>> Or is this out of the spec?
> In general injection happens before any methods are called so I think
> it would be confusing if we specified otherwise.
No problem, but this is not really efficient. But the usecase is not
often used, I think.

best regards
   Stephan