Class DataBindingListenerAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterBinding​(java.lang.Object target, java.lang.Object errors)
      Called after data binding has finished.
      void afterBinding​(java.lang.Object obj, java.lang.String propertyName, java.lang.Object errors)
      Called after data binding has been imposed on a property
      java.lang.Boolean beforeBinding​(java.lang.Object target, java.lang.Object errors)
      Called when data binding is about to start.
      java.lang.Boolean beforeBinding​(java.lang.Object obj, java.lang.String propertyName, java.lang.Object value, java.lang.Object errors)
      Called when data binding is about to imposed on a property
      void bindingError​(BindingError error, java.lang.Object errors)
      Called when an error occurs binding to a property
      boolean supports​(java.lang.Class<?> clazz)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataBindingListenerAdapter

        public DataBindingListenerAdapter()
    • Method Detail

      • supports

        public boolean supports​(java.lang.Class<?> clazz)
        Specified by:
        supports in interface DataBindingListener
        Returns:
        true if the listener is interested in events for the specified type.
      • beforeBinding

        public java.lang.Boolean beforeBinding​(java.lang.Object target,
                                               java.lang.Object errors)
        Description copied from interface: DataBindingListener
        Called when data binding is about to start.
        Specified by:
        beforeBinding in interface DataBindingListener
        Parameters:
        target - The object data binding is being imposed upon
        errors - the Spring Errors instance (a org.springframework.validation.BindingResult)
        Returns:
        true if data binding should continue
      • beforeBinding

        public java.lang.Boolean beforeBinding​(java.lang.Object obj,
                                               java.lang.String propertyName,
                                               java.lang.Object value,
                                               java.lang.Object errors)
        Description copied from interface: DataBindingListener
        Called when data binding is about to imposed on a property
        Specified by:
        beforeBinding in interface DataBindingListener
        Parameters:
        obj - The object data binding is being imposed upon
        propertyName - The name of the property being bound to
        value - The value of the property being bound
        errors - the Spring Errors instance (a org.springframework.validation.BindingResult)
        Returns:
        true if data binding should continue, otherwise return false
      • afterBinding

        public void afterBinding​(java.lang.Object obj,
                                 java.lang.String propertyName,
                                 java.lang.Object errors)
        Description copied from interface: DataBindingListener
        Called after data binding has been imposed on a property
        Specified by:
        afterBinding in interface DataBindingListener
        Parameters:
        obj - The object data binding is being imposed upon
        propertyName - The name of the property that was bound to
        errors - the Spring Errors instance (a org.springframework.validation.BindingResult)
      • afterBinding

        public void afterBinding​(java.lang.Object target,
                                 java.lang.Object errors)
        Description copied from interface: DataBindingListener
        Called after data binding has finished.
        Specified by:
        afterBinding in interface DataBindingListener
        Parameters:
        target - The object data binding is being imposed upon
        errors - the Spring Errors instance (a org.springframework.validation.BindingResult)
      • bindingError

        public void bindingError​(BindingError error,
                                 java.lang.Object errors)
        Description copied from interface: DataBindingListener
        Called when an error occurs binding to a property
        Specified by:
        bindingError in interface DataBindingListener
        Parameters:
        error - encapsulates information about the binding error
        errors - the Spring Errors instance (a org.springframework.validation.BindingResult)
        See Also:
        BindingError