Interface BeanInfo<T>

  • Type Parameters:
    T - the exact bean type
    All Known Implementing Classes:
    DefaultBeanInfo

    public interface BeanInfo<T>
    Bean info API. It checks the whole bean's class hierarchy.
    Author:
    Ales Justin
    • Method Detail

      • getConstructor

        Constructor<T> getConstructor​(String... parameterTypes)
        Get ctor; exact match wrt parameter types.
        Parameters:
        parameterTypes - the parameter types
        Returns:
        the found ctor
      • findConstructor

        Constructor<T> findConstructor​(String... parameterTypes)
        Find ctor. Loose parameter type matching; not all types need to be known.
        Parameters:
        parameterTypes - the parameter types
        Returns:
        the found ctor
      • getMethod

        Method getMethod​(String name,
                         String... parameterTypes)
        Get method; exact match wrt parameter types.
        Parameters:
        name - the method name
        parameterTypes - the parameter types
        Returns:
        found method
      • findMethod

        Method findMethod​(String name,
                          String... parameterTypes)
        Find method. Loose parameter type matching; not all types need to be known.
        Parameters:
        name - the method name
        parameterTypes - the parameter types
        Returns:
        found method
      • getGetter

        Method getGetter​(String propertyName,
                         Class<?> type)
        Get getter.
        Parameters:
        propertyName - the getter propertyName
        type - the type propertyName
        Returns:
        the found getter
      • getSetter

        Method getSetter​(String propertyName,
                         Class<?> type)
        Get setter.
        Parameters:
        propertyName - the setter propertyName
        type - the type propertyName
        Returns:
        the found setter
      • getField

        Field getField​(String name)
        Get bean's field.
        Parameters:
        name - the field name
        Returns:
        the found field