Jeff Brekke <[EMAIL PROTECTED]> wrote:
[SNIPPED]
> I thought it just saves the reference to the object in the hashtable. You
> should have your user object eventhough it is being used through the User
> interface.
> The UserFactory will create an instance of your object.
EEEK! Should read:
The UserFactory will create an instance of your class.
Sorry...
> So you should just be able to cast it...
>
> if ( rundata.getUser() instanceof MyUser )
> {
> MyUser mu = (MyUser)rundata.getUser();
> /* do your stuff */
> }
> else
> {
> /* error code? */
> }
>
> Or you could just attempt the cast and catch/not catch the exception...
Jeff Brekke
mailto:[EMAIL PROTECTED]
http://sites.netscape.net/ekkerbj
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]