Class RoutingBindingContextImpl<E>
java.lang.Object
org.hibernate.search.mapper.pojo.bridge.binding.impl.AbstractCompositeBindingContext
org.hibernate.search.mapper.pojo.bridge.binding.impl.RoutingBindingContextImpl<E>
- All Implemented Interfaces:
BindingContext,RoutingBindingContext
public class RoutingBindingContextImpl<E>
extends AbstractCompositeBindingContext
implements RoutingBindingContext
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingBindingContextImpl(BeanResolver beanResolver, PojoBootstrapIntrospector introspector, PojoRawTypeModel<E> indexedEntityType, PojoModelTypeRootElement<E> pojoModelTypeRootElement, PojoRoutingIndexingDependencyConfigurationContextImpl<E> dependencyContext, Map<String, Object> params) -
Method Summary
Modifier and TypeMethodDescriptionapplyBinder(RoutingBinder binder) <E2> voidbridge(Class<E2> expectedType, BeanHolder<? extends RoutingBridge<E2>> bridgeHolder) Sets the object responsible for routing indexed entities to the correct index/shard.<E2> voidbridge(Class<E2> expectedType, RoutingBridge<E2> bridge) Sets the object responsible for routing indexed entities to the correct index/shard.params()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.BindingContext
beanResolver, param, param, paramOptional, paramOptional, params
-
Constructor Details
-
RoutingBindingContextImpl
public RoutingBindingContextImpl(BeanResolver beanResolver, PojoBootstrapIntrospector introspector, PojoRawTypeModel<E> indexedEntityType, PojoModelTypeRootElement<E> pojoModelTypeRootElement, PojoRoutingIndexingDependencyConfigurationContextImpl<E> dependencyContext, Map<String, Object> params)
-
-
Method Details
-
bridge
Description copied from interface:RoutingBindingContextSets the object responsible for routing indexed entities to the correct index/shard.- Specified by:
bridgein interfaceRoutingBindingContext- Type Parameters:
E2- The expected entity type.- Parameters:
expectedType- The expected entity type.bridge- The bridge to use when indexing.
-
bridge
public <E2> void bridge(Class<E2> expectedType, BeanHolder<? extends RoutingBridge<E2>> bridgeHolder) Description copied from interface:RoutingBindingContextSets the object responsible for routing indexed entities to the correct index/shard.- Specified by:
bridgein interfaceRoutingBindingContext- Type Parameters:
E2- The expected entity type.- Parameters:
expectedType- The expected entity type.bridgeHolder- ABeanHoldercontaining the bridge to use when indexing.
-
bridgedElement
- Specified by:
bridgedElementin interfaceRoutingBindingContext- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the bridged POJO type (i.e. the indexed type).
-
dependencies
- Specified by:
dependenciesin interfaceRoutingBindingContext- Returns:
- An entry point allowing to declare the parts of the entity graph that the bridge will depend on.
-
applyBinder
-
beanResolver
- Specified by:
beanResolverin interfaceBindingContext- Returns:
- A bean provider, allowing the retrieval of beans, including CDI/Spring DI beans when in the appropriate environment.
-
params
- Specified by:
paramsin interfaceBindingContext- Returns:
- Parameters defined for the binder.
- See Also:
-