Interface PropertyBindingContext
-
- All Superinterfaces:
BindingContext
public interface PropertyBindingContext extends BindingContext
The context provided to thePropertyBinder.bind(PropertyBindingContext)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <P2> voidbridge(Class<P2> expectedPropertyType, BeanHolder<? extends PropertyBridge<P2>> bridgeHolder)Sets the bridge implementing the property/index binding.<P2> voidbridge(Class<P2> expectedPropertyType, PropertyBridge<P2> bridge)Sets the bridge implementing the property/index binding.default voidbridge(BeanHolder<? extends PropertyBridge<Object>> bridgeHolder)Sets the bridge implementing the property/index binding.default voidbridge(PropertyBridge<Object> bridge)Sets the bridge implementing the property/index binding.PojoModelPropertybridgedElement()PojoPropertyIndexingDependencyConfigurationContextdependencies()IndexSchemaElementindexSchemaElement()IndexFieldTypeFactorytypeFactory()-
Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.BindingContext
beanResolver, param, paramOptional
-
-
-
-
Method Detail
-
bridge
default void bridge(PropertyBridge<Object> bridge)
Sets the bridge implementing the property/index binding.- Parameters:
bridge- The bridge to use at runtime to convert between the POJO property and the index field value.
-
bridge
default void bridge(BeanHolder<? extends PropertyBridge<Object>> bridgeHolder)
Sets the bridge implementing the property/index binding.- Parameters:
bridgeHolder- ABeanHoldercontaining the bridge to use at runtime to convert between the POJO property and the index field value. UseBeanHolder.of(Object)if you don't need any particular closing behavior.
-
bridge
<P2> void bridge(Class<P2> expectedPropertyType, PropertyBridge<P2> bridge)
Sets the bridge implementing the property/index binding.- Type Parameters:
P2- The type of the property expected by the given bridge.- Parameters:
expectedPropertyType- The type of the property expected by the given bridge. Hibernate Search will check that these expectations are met, and throw an exception if they are not.bridge- The bridge to use at runtime to convert between the POJO property and the index field value.
-
bridge
<P2> void bridge(Class<P2> expectedPropertyType, BeanHolder<? extends PropertyBridge<P2>> bridgeHolder)
Sets the bridge implementing the property/index binding.- Type Parameters:
P2- The type of the property expected by the given bridge.- Parameters:
expectedPropertyType- The type of the property expected by the given bridge. Hibernate Search will check that these expectations are met, and throw an exception if they are not.bridgeHolder- ABeanHoldercontaining the bridge to use at runtime to convert between the POJO property and the index field value. UseBeanHolder.of(Object)if you don't need any particular closing behavior.
-
bridgedElement
@Incubating PojoModelProperty bridgedElement()
- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the bridged POJO property.
-
dependencies
PojoPropertyIndexingDependencyConfigurationContext dependencies()
- Returns:
- An entry point allowing to declare the parts of the entity graph that this bridge will depend on.
-
typeFactory
IndexFieldTypeFactory typeFactory()
- Returns:
- An entry point allowing to define a new field type.
-
indexSchemaElement
IndexSchemaElement indexSchemaElement()
- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the index schema.
-
-