injectField

fun injectField(accessor: Any, field: Field, value: Any?)

Injects the given value into the field for the given accessor. This function bypasses any modifier to directly access and write to the given field. If the injection fails for any reason, VitalConfigException.InjectField is thrown.