Class ClassLoadingStrategySelector
java.lang.Object
org.hibernate.search.query.fieldcache.ClassLoadingStrategySelector
A
FieldCacheCollectorFactory requires two parameters which are inferred from
the type of field and it's applied bridges. Not all cases can be covered.
This class contains helpers to extract the proper parameters to create such a factory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TwoWayStringBridgegetTwoWayStringBridge(TwoWayFieldBridge fieldBridge) Extracts (if possible) the two way string bridge from a given two way field bridgestatic FieldCacheLoadingTypeguessAppropriateCollectorType(TwoWayFieldBridge fieldBridge)
-
Constructor Details
-
ClassLoadingStrategySelector
public ClassLoadingStrategySelector()
-
-
Method Details
-
guessAppropriateCollectorType
-
getTwoWayStringBridge
Extracts (if possible) the two way string bridge from a given two way field bridge- Parameters:
fieldBridge- the field bridge from which to extract (unwrap) the two way string bridge- Returns:
- the underlying string bridge or
nullif we can't extract it
-