@FunctionalInterface public interface RecordUnmapperProvider
In order to inject custom
behaviour, users can supply a custom
RecordUnmapperProvider to their
Configuration instances. This provider will be used in any of these
methods (non-exhaustive list):
While not strictly required, it is advisable to implement a
RecordUnmapperProvider whose behaviour is consistent with the
<E,R extends Record> RecordUnmapper<E,R> provide(java.lang.Class<? extends E> type, RecordType<R> recordType)
Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
type- The user type that was passed into
Record.from(Object)or any other method.
RecordTypeof records that shall be mapped by the returned
Copyright © 2018. All Rights Reserved.