Re: [picocontainer-dev] Recursive injection
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Its in web apps where the component assembly is stored in XML, and
needs to be parsed for injection.
look in nanoextras2/nanowar packages...
- paul
On Jun 19, 2007, at 5:21 PM, Putrycz, Erik wrote:
> I just had a look at the different injectors code. What kind of
> performance gain are you looking for?
>
> I don't see where a container recorder would bring performance
> improvement... as a rough guess the most consuming ops are all the
> reflexion ones. The constructor and other injector elements are
> already
> cached in the injectors. getComponent should be as fast as possible on
> the second call.
>
> Erik.
>
>>>
>>> Where could I find the "container recorder"?
>>> I'd be curious to see what it caches to improve
>>> performance.
>>
>> org.nanocontainer.reflection.DefaultContainerRecorder
>> It is proxy wrapper for MPC, which intercepts all
>> calls to it and stores method invocations in
>> array list.
>>
>> those can be replayed later on another fresh contaienr
>> instance - works with all scripting builders,
>> but sometimes introduces subtle problems due to
>> sharing of constant values.
>>
>> regards,
>>
>>
>> ----[ Konstantin Pribluda http://www.pribluda.de ]----------------
>> JTec quality components: http://www.pribluda.de/projects/
>>
>>
>>
>>
> ______________________________________________________________________
> __
> __
>> __________
>> Looking for a deal? Find great prices on flights and hotels with
> Yahoo!
>> FareChase.
>> http://farechase.yahoo.com/
>>
>> ---------------------------------------------------------------------
>> 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