Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.acegisecurity.domain.validation
Interface BindBeforeValidation

    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.

Version:
  $Id: BindBeforeValidation.java,v 1.2 2005/11/17 00:55:50 benalex Exp $
Author:
  Ben Alex

Method Summary
`void` | `bindSupport()` This method will be called by infrastructure code before attempting to validate the object.

Method Detail

### bindSupport

    void bindSupport()
                     throws BindException

  This method will be called by infrastructure code before attempting to validate the object. Given this method is called prior to validation, implementations of this method should not assume the object is in a valid state.

  Implementations should modify the object as required so that the `Validator` will succeed if user-controllable properties are correct.

  Throws:
    `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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.