commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: [beanutils] getSimpleProperty
Date Tue, 23 Sep 2003 17:45:03 GMT
Reinhard wrote:

>Craig R. McClanahan wrote:
>>That is not actually true if the data type is actually *boolean* (lower
>>case "b").  In that scenario, it's perfectly legal to have the getter
>>method start with "is" instead of "get".  The following is a legal
>>read-write property:
>>  public boolean isStarted();
>>  public void setStarted(boolean started);
>>The following is not:
>>  public Boolean isStarted();
>>  public void setStarted(Boolean started);
>Thanks for the extra clarification.
>Is the above a general rule on java or is it limited to BeanUtils?
BeanUtils uses standard Java introspection to identify the getter and 
setter methods for properties, and those rules are defined in the 
JavaBeans specification.  Therefore, the restriction applies to any Java 
code that wants to deal with JavaBeans properties.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message