Article View: borland.public.jbuilder.java.language
Article #14572Elegant construction via reflection.
From: Hugo Ferreira
Date: Wed, 25 Aug 1999 00:00
Date: Wed, 25 Aug 1999 00:00
17 lines
1061 bytes
1061 bytes
Hi, I am using the reflection API to construct instances of a class. I am doing this because I am working with a ORB. I supply the class name and a vector of objects that make up the constructor arguments. All works fine but, sometimes an argument is not needed and a null is used. A null however cannot provide a class instance that is used for obtaining the constructor. Question: Besides creating a new contructor that simply does not use that parameter, does anyone know of an elegant way to solve this problem? TIA.
Technical Details
Message-ID:
<7q0jan$lf45@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f6e8b01b7be779e,start X-Google-Attributes: gidf74b3,public From: "Hugo Ferreira" <hmf@inescn.pt> Subject: Elegant construction via reflection. Date: 1999/08/25 Message-ID: <7q0jan$lf45@forums.borland.com> X-Deja-AN: 516971078 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: INESC Norte X-MSMail-Priority: Normal Reply-To: "Hugo Ferreira" <hmf@inescn.pt> Newsgroups: borland.public.jbuilder.java.language