Class CachedPreferredConstructorDiscoverer<T>
java.lang.Object
in.co.akshitbansal.springwebquery.tupleconverter.PreferredConstructorDiscoverer<T>
in.co.akshitbansal.springwebquery.tupleconverter.CachedPreferredConstructorDiscoverer<T>
- Type Parameters:
T- target DTO type
Cached
PreferredConstructorDiscoverer variant that memoizes
constructor matches by target DTO type and tuple shape.-
Field Summary
Fields inherited from class in.co.akshitbansal.springwebquery.tupleconverter.PreferredConstructorDiscoverer
clazz -
Method Summary
Modifier and TypeMethodDescriptiondiscover(@NonNull jakarta.persistence.Tuple tuple) Finds a constructor for the supplied tuple, serving the result from the shared cache whenever the tuple shape has already been seen.Methods inherited from class in.co.akshitbansal.springwebquery.tupleconverter.PreferredConstructorDiscoverer
getTargetClass, wrap
-
Method Details
-
discover
Finds a constructor for the supplied tuple, serving the result from the shared cache whenever the tuple shape has already been seen.- Overrides:
discoverin classPreferredConstructorDiscoverer<T>- Parameters:
tuple- tuple whose values will be passed to the constructor- Returns:
- cached or freshly discovered matching constructor
-