Class ValueConverterRegistry

java.lang.Object
com.soklet.converter.ValueConverterRegistry

A collection of ValueConverter instances, supplemented with quality-of-life features that most applications need.

For example, the registry will automatically generate and cache off ValueConverter instances when a requested 'from' type is String and the 'to' type is an Enum if no converter was previously specified (this is almost always the behavior you want).

The registry will also perform primitive mapping when locating ValueConverter instances. For example, if a requested 'from' String and 'to' int are specified and that converter does not exist, but a 'from' String and 'to' Integer does exist, it will be returned.

Finally, reflexive ValueConverter instances are automatically created and cached off when the requested 'from' and 'to' types are identical.

Value conversion is documented in detail at https://www.soklet.com/docs/value-conversions.

Author:
Mark Allen