On Sun, May 21, 2000 at 02:35:55PM -0400, Chris Kimpton wrote:
> Hi,
> 
> I'm looking to access objects in a generic way - ie by casting them to a superclass 
>and using generic methods such as getPerm/setPerm.

What kind of access are you tallking about - i.e. what kind of
operations are you looking to perform.

You could consider using the setProperties method I added to
ParameterParser instead. This will match parameter names to setXXX
methods for you.

For other stuff you might use a similar methodology, but I'd have to
know what you are trying to do...

> But currently these are defined in User and implemented in TurbineUser - I suggest 
>moving them to BaseObject.  That is, all the permanent and temporary storage related 
>methods.

But the permanent and temporary hashtables are quite specific to
TurbineUser, there's no reason why a class derived from BaseObject
should store its attributes in this way at all. My deriviations use
instance fields for everything.

Sean

-- 
Sean Legassick
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to