classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Introspector.getBeanInfo(class, int)


From: Aaron Luchko
Subject: Re: [cp-patches] Introspector.getBeanInfo(class, int)
Date: Sun, 25 Sep 2005 19:06:40 +0000

On Mon, 2005-08-29 at 23:44 +0200, Robert Schuster wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Aaron,
> now that I have PC and internet I found this discussion. Since I am working in
> the java.beans package for some time I stepped on getBeanInfo(Class, int) 
> before
> and can explain how it is supposed to work (If you know the terms it is 
> actually
> pretty simple.)

Hi,
Sorry for taking so long to reply, I had a move and it took a while for
my computer (and the rest of my belongings) to show up and get settled
in.

> At first: We can have a two types of bean infos. One is given by the 
> programmer
> (or designer) using the special BeanInfo class (It works through special class
> names, ie. if you bean class is Foo than the corresponding info is called
> FooBeanInfo). If such an information class does not exist the beans framework
> can create it on the fly (using the Introspector).
> 
> Imagine that a bean class has many parent bean classes and each of them can 
> have
> a corresponding (non-autogenerated) bean info class.
> 
> The integer parameter of getBeanInfo(Class, int) decides when to use the
> explicit (programmer given) or implicit (auto-generated) beaninfo data.
> 
> USE_ALL_BEANINFO - take all explicit beaninfos (all superclasses and the class
> itself) you can get (or automatically fall back to the implicit ones)
> 
> IGNORE_IMMEDIATE_BEANINFO - use explicit beaninfo from superclasses but not 
> the
> class itself (or fall back to the automatically generated infos)
> 
> IGNORE_ALL_BEANINFO - use the automatically generated infos only
> 
> I hope this clears the matter a bit.

It definitely does.

> Btw: I have started writing a testcase for this (tedious ...) and once had a
> working getBeanInfo implementation but lost the patch when I had to rebuild 
> the
> filesystem tree on my reiserfs formatted hd. :(
> 
> Please tell me if you want to work on this. Otherwise I would look at it again
> and maybe finish it soon.

Unfortunately I'm going to be way too busy for the next few months to
work on this so feel free to work on it if you wish.

thanks,
Aaron





reply via email to

[Prev in Thread] Current Thread [Next in Thread]