1 | A related concept is when another bean wants to have a possible veto over a change to a property. |
2 | The set method of the property throws an exception called java.beans.PropertyVetoException. |
3 | The object must also support (by having add and remove methods) a VetoableChangeListener. |
4 | Then each bean that wants to be able to veto property changes implements VetoableChangeListener. |
5 | If more than one bean wants to veto property changes, then it may be quite complicated to work out when to keep the old value or move to the new value. |