Interface IFieldValueFactory

    • Method Detail

      • getFieldValue

        Object getFieldValue​(Field field,
                             Object fieldOwner)
        Returns the value the field will be set to
        Parameters:
        field - field being injected
        fieldOwner - instance of object being injected
        Returns:
        new field value
      • supportsField

        boolean supportsField​(Field field)
        Returns true if the factory can generate a value for the field, false otherwise. If this method returns false, getFieldValue() will not be called on this factory
        Parameters:
        field - field
        Returns:
        true if the factory can generate a value for the field, false otherwise