|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of beanpublic interface ModifiableBean<R>
A template for the client in a visitor pattern. This class allows one to define a chain of modifications on a bean:
ModifiablePerson mp =; List > modifiers = ; for (BeanModifier modifier : modifiers) { mp = mp.acceptModification(modifier); }
| Method Summary | |
|---|---|
ModifiableBean<R> |
acceptModification(BeanModifier<R> modifier)
Accepts modification by the specified bean modifier. |
Object |
clone()
|
ModifiableBean<R> |
cloneModifiableBean()
A typesafe clone method |
| Method Detail |
|---|
Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionfor the Cloneable contract,
Object.clone()
ModifiableBean<R> cloneModifiableBean()
throws CreationException
CreationException
ModifiableBean<R> acceptModification(BeanModifier<R> modifier)
throws ModificationException
ModificationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||