Interface BeanPropertyBinder

  • All Superinterfaces:
    ArgumentBinder<java.lang.Object,​java.util.Map<java.lang.CharSequence,​? super java.lang.Object>>

    public interface BeanPropertyBinder
    extends ArgumentBinder<java.lang.Object,​java.util.Map<java.lang.CharSequence,​? super java.lang.Object>>

    An interface that provides the ability to bind Maps and Java bean properties

    .

    This class is designed specifically for binding of String based property data such as Form submissions and dynamic binding of Java Properties files and should not be used beyond these two use cases.

    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default <T2> T2 bind​(java.lang.Class<T2> type, java.util.Map<? extends java.lang.CharSequence,​java.lang.Object> source)
      Bind a new instance of the given type from the given source.
      <T2> T2 bind​(java.lang.Class<T2> type, java.util.Set<? extends java.util.Map.Entry<? extends java.lang.CharSequence,​java.lang.Object>> source)
      Bind a new instance of the given type from the given source.
      default <T2> T2 bind​(T2 object, ArgumentConversionContext<T2> context, java.util.Map<? extends java.lang.CharSequence,​java.lang.Object> source)
      Bind an existing instance of the given type from the given source.
      <T2> T2 bind​(T2 object, ArgumentConversionContext<T2> context, java.util.Set<? extends java.util.Map.Entry<? extends java.lang.CharSequence,​java.lang.Object>> source)
      Bind an existing instance of the given type from the given source.
      default <T2> T2 bind​(T2 object, java.lang.Object source)
      Bind an existing instance of the given type from the given source.
      default <T2> T2 bind​(T2 object, java.util.Map<? extends java.lang.CharSequence,​java.lang.Object> source)
      Bind an existing instance of the given type from the given source.
      <T2> T2 bind​(T2 object, java.util.Set<? extends java.util.Map.Entry<? extends java.lang.CharSequence,​java.lang.Object>> source)
      Bind an existing instance of the given type from the given source.
    • Method Detail

      • bind

        <T2> T2 bind​(java.lang.Class<T2> type,
                     java.util.Set<? extends java.util.Map.Entry<? extends java.lang.CharSequence,​java.lang.Object>> source)
              throws ConversionErrorException
        Bind a new instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        type - The type
        source - The source
        Returns:
        The bound instance
        Throws:
        ConversionErrorException - if the object cannot be bound
      • bind

        <T2> T2 bind​(T2 object,
                     ArgumentConversionContext<T2> context,
                     java.util.Set<? extends java.util.Map.Entry<? extends java.lang.CharSequence,​java.lang.Object>> source)
        Bind an existing instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        object - The bean
        context - The conversion context
        source - The source
        Returns:
        The bound instance
      • bind

        <T2> T2 bind​(T2 object,
                     java.util.Set<? extends java.util.Map.Entry<? extends java.lang.CharSequence,​java.lang.Object>> source)
              throws ConversionErrorException
        Bind an existing instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        object - The bean
        source - The source
        Returns:
        The bound instance
        Throws:
        ConversionErrorException - if the object cannot be bound
      • bind

        default <T2> T2 bind​(java.lang.Class<T2> type,
                             java.util.Map<? extends java.lang.CharSequence,​java.lang.Object> source)
                      throws ConversionErrorException
        Bind a new instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        type - The type
        source - The source
        Returns:
        The bound instance
        Throws:
        ConversionErrorException - if the object cannot be bound
      • bind

        default <T2> T2 bind​(T2 object,
                             ArgumentConversionContext<T2> context,
                             java.util.Map<? extends java.lang.CharSequence,​java.lang.Object> source)
        Bind an existing instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        object - The bean
        context - The conversion context
        source - The source
        Returns:
        The bound instance
      • bind

        default <T2> T2 bind​(T2 object,
                             java.util.Map<? extends java.lang.CharSequence,​java.lang.Object> source)
                      throws ConversionErrorException
        Bind an existing instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        object - The bean
        source - The source
        Returns:
        The bound instance
        Throws:
        ConversionErrorException - if the object cannot be bound
      • bind

        default <T2> T2 bind​(T2 object,
                             java.lang.Object source)
                      throws ConversionErrorException
        Bind an existing instance of the given type from the given source.
        Type Parameters:
        T2 - The generic type
        Parameters:
        object - The bean
        source - The source
        Returns:
        The bound instance
        Throws:
        ConversionErrorException - if the object cannot be bound