Class PreferredConstructorDiscovererFactory
java.lang.Object
in.co.akshitbansal.springwebquery.tupleconverter.PreferredConstructorDiscovererFactory
Creates
PreferredConstructorDiscoverer instances with optional
shared constructor caching.-
Constructor Summary
ConstructorsConstructorDescriptionPreferredConstructorDiscovererFactory(boolean useCache) Creates a factory that produces cached or uncached discoverers. -
Method Summary
Modifier and TypeMethodDescriptionnewDiscoverer(@NonNull Class<T> clazz) Creates a discoverer for the supplied DTO type.
-
Constructor Details
-
PreferredConstructorDiscovererFactory
public PreferredConstructorDiscovererFactory(boolean useCache) Creates a factory that produces cached or uncached discoverers.- Parameters:
useCache- whether discoverers should share a constructor cache
-
-
Method Details
-
newDiscoverer
Creates a discoverer for the supplied DTO type.- Type Parameters:
T- target DTO type- Parameters:
clazz- DTO type whose constructors will be inspected- Returns:
- cached or uncached discoverer depending on factory configuration
-