Interface InstancioServiceProvider.SetterMethodResolver

Enclosing interface:
InstancioServiceProvider

@ExperimentalApi public static interface InstancioServiceProvider.SetterMethodResolver
Resolves setter method based on a given node when Keys.ASSIGNMENT_TYPE is set to AssignmentType.METHOD.

An implementation of this interface can be returned via the InstancioServiceProvider.getSetterMethodResolver() method.

Since:
3.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the setter method for the given node.
  • Method Details

    • getSetter

      @ExperimentalApi Method getSetter(Node node)
      Returns the setter method for the given node. If null is returned, Instancio will attempt to resolve the method using built-in resolvers based on the value of Keys.SETTER_STYLE.
      Parameters:
      node - to resolve the setter method for
      Returns:
      setter method or null if method was not resolved
      Since:
      3.2.0