Companion

object Companion

Functions

Link copied to clipboard

Gets the Field for the given property and class.

Link copied to clipboard

Gets all non-property fields from the given class that are not annotated via Property.

Link copied to clipboard

Gets all property fields from the given class that are annotated via Property.

Link copied to clipboard
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.

Link copied to clipboard
fun readField(accessor: Any, field: Field): Any?

Reads the given field using the given accessor. This function bypasses any modifier to directly access the field's value. If this fails for any reason, VitalConfigException.ReadField is thrown.