felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michiel Vermandel <mverm...@yahoo.com>
Subject Re: [iPOJO] FieldInterceptor question
Date Tue, 21 May 2013 13:17:18 GMT
Hi Clement,

I know it its possible like that, but I am a bit afraid that the overhead of this implementation
will be considerable if this field is called very frequently.



http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials

 From: Clement Escoffier <clement.escoffier@gmail.com>
To: users@felix.apache.org; Michiel Vermandel <mvermand@yahoo.com> 
Sent: Tuesday, May 21, 2013 1:15 PM
Subject: Re: [iPOJO] FieldInterceptor question


Yes of course.

Check this handler (used for testing purpose) doing somewhat what you want:



On 21 mai 2013, at 12:52, Michiel Vermandel <mvermand@yahoo.com> wrote:

>I want to use the FieldInterceptor capabilities to initialize a field.
>It isn't hard to do but after analyzing the source code (InstanceManager.java) I'm a bit
afraid of the overhead of using a FieldInterceptor.
>It seems to do quite a lot.
>In my scenario, I just want to initialize the field upon first access and then, once initialized,
the FieldInterceptor should not do anything anymore.
>Is this possible?
>http://www.codessentials.com - Your essential software, for free!
>Follow us at http://twitter.com/#!/Codessentials
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message