On 25 Feb 2003 at 1:01, Jordi Salvat i Alabart wrote:

> 
> > I liked the idea of official "Property" objects from Oliver.  I think it's a 
> > rather big task though, 
> > and complicated.
> 
> Have I missed that discussion? Or are you refering to "the use of 
> special property objects" mentioned in 
> http://nagoya.apache.org/wiki/apachewiki.cgi?JMeterArchitecturalOverview ?

Well, there aren't many specifics there, and I haven't looked at Oliver's code myself. 
 I think 
the idea is to encapsulate some useful functionality in a Property hierarchy - with 
StringProperty, IntegerProperty, CollectionProperty, etc.  Then, when grabbing data 
from a 
TestElement, the Property object can arrange to deliver functions correctly, etc.

It would have a lot of advantages in terms of code consistency, facilitating 
functions, making 
the .jmx files very "regular".  It would have the disadvantage of making for a lot of 
verbose 
code, and affecting lots of classes.

> 
> Or should I go straight to Oliver's code?

It's probably worth a look.

> 
> > 
> > Also, there's another case I forgot - and the real reason Samplers are 
> > PerSampleClonable:  
> > Default config objects - they write into the Samplers, but you don't want that to 
> > become part of 
> > the Sampler permanently.  Of course, I can think of some interesting ways to deal 
> > with that 
> > too...
> 
> Is it that way? I thought it was the sampler knowing about the config 
> object, not the reverse. Maybe I should revisit those Wiki pages on 
> JMeter internals w.r.t. configs...

Yeah, the Sampler does the work, and copies data from config objects into itself.  
This could 
probably fixed by instead having the sampler hold config objects and delegate to them 
in the 
event of null properties.  Then, after the sample run, the sampler can simply discard 
the 
delegates.

-Mike

> 
> Salut,
> 
> Jordi.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to