Interface RoutingBindingContext
-
- All Superinterfaces:
BindingContext
public interface RoutingBindingContext extends BindingContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E> void
bridge(Class<E> expectedType, BeanHolder<? extends RoutingBridge<E>> bridgeHolder)
Sets the object responsible for routing indexed entities to the correct index/shard.<E> void
bridge(Class<E> expectedType, RoutingBridge<E> bridge)
Sets the object responsible for routing indexed entities to the correct index/shard.PojoModelType
bridgedElement()
PojoRoutingIndexingDependencyConfigurationContext
dependencies()
-
Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.BindingContext
beanResolver, param, paramOptional
-
-
-
-
Method Detail
-
bridge
<E> void bridge(Class<E> expectedType, RoutingBridge<E> bridge)
Sets the object responsible for routing indexed entities to the correct index/shard.- Type Parameters:
E
- The expected entity type.- Parameters:
expectedType
- The expected entity type.bridge
- The bridge to use when indexing.
-
bridge
<E> void bridge(Class<E> expectedType, BeanHolder<? extends RoutingBridge<E>> bridgeHolder)
Sets the object responsible for routing indexed entities to the correct index/shard.- Type Parameters:
E
- The expected entity type.- Parameters:
expectedType
- The expected entity type.bridgeHolder
- ABeanHolder
containing the bridge to use when indexing.
-
bridgedElement
@Incubating PojoModelType bridgedElement()
- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the bridged POJO type (i.e. the indexed type).
-
dependencies
PojoRoutingIndexingDependencyConfigurationContext dependencies()
- Returns:
- An entry point allowing to declare the parts of the entity graph that the bridge will depend on.
-
-