commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Field-Elliot <>
Subject Re: [Design Discussion] DynaBeans - Round 2
Date Tue, 25 Dec 2001 19:56:49 GMT
I recommend these additions to the DynaBean interface:

1. Add two new concepts, "readOnly" and "dirty", which can be tracked
via boolean flags.

void setReadOnly(boolean) - 
boolean isReadOnly() -
    If the DynaBean is marked as "readOnly" disallow all "set()" calls
(consider throwing an exception).

void setDirty(boolean) - 
boolean isDirty() - 
    In DynaBeanImpl, keep an internal flag, "dirty", initially false.
Upon calling any of the "set" methods, this flag should be set to
"true". With the above methods, we can test its value as well as change
the value of the flag.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message