Class DefaultValueProviderSelectionStrategy
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.DefaultValueProviderSelectionStrategy
-
- All Implemented Interfaces:
ValueProviderSelectionStrategy,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DefaultValueProviderSelectionStrategy extends java.lang.Object implements ValueProviderSelectionStrategy, org.springframework.context.ApplicationContextAware
Default implementation ofValueProviderSelectionStrategy.
-
-
Constructor Summary
Constructors Constructor Description DefaultValueProviderSelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()java.lang.StringgetDefaultValueProviderId()java.lang.ObjectgetValueProvider(java.lang.String valueProviderId)Returns the value provider instance for a specific value provider id.java.lang.StringresolveValueProvider(IndexedType indexedType, IndexedProperty indexedProperty)Resolves the value provider id for an indexed property.java.util.Map<java.lang.String,java.util.Collection<IndexedProperty>>resolveValueProviders(IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties)Resolves the value provider ids for multiple indexed properties.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetDefaultValueProviderId(java.lang.String defaultValueProviderId)
-
-
-
Method Detail
-
getDefaultValueProviderId
public java.lang.String getDefaultValueProviderId()
-
setDefaultValueProviderId
public void setDefaultValueProviderId(java.lang.String defaultValueProviderId)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getValueProvider
public java.lang.Object getValueProvider(java.lang.String valueProviderId)
Description copied from interface:ValueProviderSelectionStrategyReturns the value provider instance for a specific value provider id.- Specified by:
getValueProviderin interfaceValueProviderSelectionStrategy- Parameters:
valueProviderId- - the value provider id- Returns:
- the value provider instance
-
resolveValueProvider
public java.lang.String resolveValueProvider(IndexedType indexedType, IndexedProperty indexedProperty)
Description copied from interface:ValueProviderSelectionStrategyResolves the value provider id for an indexed property.- Specified by:
resolveValueProviderin interfaceValueProviderSelectionStrategy- Parameters:
indexedType- - the indexed typeindexedProperty- - the indexed property- Returns:
- the value provider id
-
resolveValueProviders
public java.util.Map<java.lang.String,java.util.Collection<IndexedProperty>> resolveValueProviders(IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties)
Description copied from interface:ValueProviderSelectionStrategyResolves the value provider ids for multiple indexed properties. It groups all the indexed properties that have the same value provider id.- Specified by:
resolveValueProvidersin interfaceValueProviderSelectionStrategy- Parameters:
indexedType- - the indexed typeindexedProperties- - the indexed properties- Returns:
- a map with the value provider id as key and the indexed properties as value
-
-