Re: [picocontainer-dev] comments on injection
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
There is something in Ctor and Setter Injector -
instantiationGuard = new ThreadLocalCyclicDependencyGuard() { .... }
I'll take a look to make sure I've not disabled it for
FieldAnnotationinjector (which extends SetterInjector)
- Paul
On Jun 12, 2007, at 7:26 AM, Putrycz, Erik wrote:
>
> I had implemented that some time ago. Did you do something to prevent
> cycles in the injection? I have not found anything satisfactory so
> far.
> There is no way to find the root getComponent call.
>
> Erik
> -----Original Message-----
> From: Paul Hammant [mailto:[email protected]]
> Sent: Tuesday, June 12, 2007 8:34 AM
> To: dev-qxt/[email protected]
> Subject: Re: [picocontainer-dev] comments on injection
>
>
>> Is it somehow configurable? It might be interesting to use Field
>> Injection only for non-static final fields ;-)
>
> Its only working for those annotated with @Inject.
>
> http://svn.codehaus.org/picocontainer/java/sandbox/baby-steps/
> pico2/container/src/java/org/picocontainer/injectors/
> FieldAnnotationInjector.java
>
> I've not coded anything around final/static but should block those I
> guess.
>
> - Paul
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email