Re: Re: New Reflection/Beans API
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <20020604112555.DJMM27460.mailoutvl21@[192.168.139.30]> |
Hi, > > Von: "Stephen Colebourne" <[email protected]> > Datum: 2002/06/04 Di AM 12:12:41 GMT+02:00 > An: "BCEL Developers List" <[email protected]> > Betreff: Re: New Reflection/Beans API > > Hi, > I haven't done too badly so far and now have a basic working generator. It > generates a bean's get, set and property methods from an interface. It also > generates the property accessors by creating a class per property (as I > think is the Java 1.4 way). > > However I have a question about the Class class. This class appears to > require quite a lot of setting up to create an instance. Is there any > factory method that I've missed to create instances of a Class? I'm a bit puzzled here, since you can not "create" Class instances. You can only look them up, either via getClass() or Class.forName(), (Class cl = Foo.class; is just syntactic sugar). Cheers Markus -- berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern! http://webmail.berlin.de