I use the Value Object Pattern with
flags indicating if the attribute has
changed, like this:

private string attibute;
private boolean attributeHasChanged;

(...)

public void setAttribute(String
attribute) {
this.attribute = attribute;
attributeHasChanged(true); // new task
}

public void
attributeHasChanged(boolean state) {
this.attributeHasChanged = state;
}

The problem is that I can't just use
the
BeanSerialization/BeanDeserialization
because inside my setAttribute I have
a new operation to do (call method
attributeHasChanged()).

What are the best solution for my
case, or at least which ones??

Thanks

Pablo Pires
Belo Horizonte - Brazil


__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - � gr�tis!
http://antipopup.uol.com.br/


Reply via email to