Package org.instancio.spi
Interface InstancioServiceProvider.SetterMethodResolver
- Enclosing interface:
InstancioServiceProvider
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
-
Method Details
-
getSetter
Returns the setter method for the givennode. Ifnullis returned, Instancio will attempt to resolve the method using built-in resolvers based on the value ofKeys.SETTER_STYLE.- Parameters:
node- to resolve the setter method for- Returns:
- setter method or
nullif method was not resolved - Since:
- 3.2.0
-