persistence@glassfish.java.net

Re: reference to java.beans.Introspector

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Thu, 23 Feb 2006 00:32:43 -0800

Sanjeeb Kumar Sahoo wrote:
> Hi Mike,
>
> Section #2.1.1 says the following:
> /It is required that the entity class follow the method signature
> conventions for JavaBeans read/write
> properties (as defined by the JavaBeans Introspector class) for
> persistent properties when persistent
> properties are used.
> /
> How is this true when we know that property accessors can be protected?
> AFAIK, JavaBeans Introspector does not consider protected accessor
> methods while creating PropertyDescriptors for a class.
>
> Thanks,
> Sahoo
>

Yes, the above should probably be modified to indicate that properties
can be public or protected. The point was to not repeat the rules for
deciding which methods define properties, but rather to reference the
already defined JavaBeans rules.