Interface ValueProviderSelectionStrategy
- All Known Implementing Classes:
DefaultValueProviderSelectionStrategy
public interface ValueProviderSelectionStrategy
Implementations of this strategy allow to select the value provider for specific indexed properties.
-
Method Summary
Modifier and TypeMethodDescriptiongetValueProvider(String valueProviderId) Returns the value provider instance for a specific value provider id.resolveValueProvider(IndexedType indexedType, IndexedProperty indexedProperty) Resolves the value provider id for an indexed property.resolveValueProviders(IndexedType indexedType, Collection<IndexedProperty> indexedProperties) Resolves the value provider ids for multiple indexed properties.
-
Method Details
-
getValueProvider
Returns the value provider instance for a specific value provider id.- Parameters:
valueProviderId- - the value provider id- Returns:
- the value provider instance
-
resolveValueProvider
Resolves the value provider id for an indexed property.- Parameters:
indexedType- - the indexed typeindexedProperty- - the indexed property- Returns:
- the value provider id
-
resolveValueProviders
Map<String,Collection<IndexedProperty>> resolveValueProviders(IndexedType indexedType, Collection<IndexedProperty> indexedProperties) Resolves the value provider ids for multiple indexed properties. It groups all the indexed properties that have the same value provider id.- Parameters:
indexedType- - the indexed typeindexedProperties- - the indexed properties- Returns:
- a map with the value provider id as key and the indexed properties as value
-