Package grails.databinding.events
Interface DataBindingListener
-
- All Known Implementing Classes:
DataBindingListenerAdapter
public interface DataBindingListenerA listener which will be notified of events generated during data binding.- Since:
- 3.0
- See Also:
DataBindingListenerAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterBinding(java.lang.Object target, java.lang.Object errors)Called after data binding has finished.voidafterBinding(java.lang.Object target, java.lang.String propertyName, java.lang.Object errors)Called after data binding has been imposed on a propertyjava.lang.BooleanbeforeBinding(java.lang.Object target, java.lang.Object errors)Called when data binding is about to start.java.lang.BooleanbeforeBinding(java.lang.Object target, java.lang.String propertyName, java.lang.Object value, java.lang.Object errors)Called when data binding is about to imposed on a propertyvoidbindingError(BindingError error, java.lang.Object errors)Called when an error occurs binding to a propertybooleansupports(java.lang.Class<?> clazz)
-
-
-
Method Detail
-
supports
boolean supports(java.lang.Class<?> clazz)
- Returns:
- true if the listener is interested in events for the specified type.
-
beforeBinding
java.lang.Boolean beforeBinding(java.lang.Object target, java.lang.Object errors)Called when data binding is about to start.- Parameters:
target- The object data binding is being imposed uponerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)- Returns:
- true if data binding should continue
-
beforeBinding
java.lang.Boolean beforeBinding(java.lang.Object target, java.lang.String propertyName, java.lang.Object value, java.lang.Object errors)Called when data binding is about to imposed on a property- Parameters:
target- The object data binding is being imposed uponpropertyName- The name of the property being bound tovalue- The value of the property being bounderrors- the Spring Errors instance (a org.springframework.validation.BindingResult)- Returns:
- true if data binding should continue, otherwise return false
-
afterBinding
void afterBinding(java.lang.Object target, java.lang.String propertyName, java.lang.Object errors)Called after data binding has been imposed on a property- Parameters:
target- The object data binding is being imposed uponpropertyName- The name of the property that was bound toerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)
-
afterBinding
void afterBinding(java.lang.Object target, java.lang.Object errors)Called after data binding has finished.- Parameters:
target- The object data binding is being imposed uponerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)
-
bindingError
void bindingError(BindingError error, java.lang.Object errors)
Called when an error occurs binding to a property- Parameters:
error- encapsulates information about the binding errorerrors- the Spring Errors instance (a org.springframework.validation.BindingResult)- See Also:
BindingError
-
-