Urgent - Alternatives for Using Reflection 2004-08-03 - By Jaise George
Back Hi Shiva,
Your description is not clear enough to give a solution. If the methods of that class is absolutely unknown, you can go for reflection. Reflection is not that dangerous these days. I guess application servers use that extensively.
Alternatively an option I can you is to use an interface, if the class is developed by your own team.
Jaise
-- --Original Message-- -- From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] On Behalf Of Shivprasad_Bade Sent: Tuesday, August 03, 2004 6:32 PM To: J2EE-INTEREST@(protected) Subject: Urgent - Alternatives for Using Reflection
Hi,
Sorry for posting it on J2EE list ...
Is there any alternative for using the Reflection.
I have a class instance with me but want to call a method depending upon some condition and I dont want to use the if-else etc.
Thanx in advance
-
Regards,
Have a nice day..!!!
Shivprasad Bade
Logic will get you from A to B - imagination will take you anywhere. ************************************************************************ ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************ **
======================================================================== === To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|