|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BindBeforeValidation
Indicates a domain object wishes to perform additional binding before the
Validator is called.
Typically this type of binding sets up private or protected properties that
the end user is not responsible for modifying. Whilst generally this can be
done by adding a hook to every property setter, the
BindBeforeValidation interface provides an AOP-style approach
that ensures missing hooks do not cause invalid object state.
| Method Summary | |
|---|---|
void |
bindSupport()
This method will be called by infrastructure code before attempting to validate the object. |
| Method Detail |
|---|
void bindSupport()
throws BindException
Implementations should modify the object as required so that the
Validator will succeed if user-controllable properties are
correct.
BindException - if there are problems that the method wish to
advise (note that the Validator should be allowed
to determine errors in most cases, rather than this method
doing so)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||