Class TypeBindingContextImpl<T>
java.lang.Object
org.hibernate.search.mapper.pojo.bridge.binding.impl.AbstractCompositeBindingContext
org.hibernate.search.mapper.pojo.bridge.binding.impl.TypeBindingContextImpl<T>
- All Implemented Interfaces:
BindingContext,TypeBindingContext
public class TypeBindingContextImpl<T>
extends AbstractCompositeBindingContext
implements TypeBindingContext
-
Constructor Summary
ConstructorsConstructorDescriptionTypeBindingContextImpl(BeanResolver beanResolver, PojoBootstrapIntrospector introspector, PojoTypeModel<T> typeModel, IndexBindingContext indexBindingContext, PojoModelTypeRootElement<T> bridgedElement, PojoTypeIndexingDependencyConfigurationContextImpl<T> dependencyContext, Map<String, Object> params) -
Method Summary
Modifier and TypeMethodDescriptionapplyBinder(TypeBinder binder) <T2> voidbridge(Class<T2> expectedEntityType, BeanHolder<? extends TypeBridge<T2>> bridgeHolder) Sets the bridge implementing the type/index binding.<T2> voidbridge(Class<T2> expectedEntityType, TypeBridge<T2> bridge) Sets the bridge implementing the type/index binding.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, paramsMethods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.TypeBindingContext
bridge, bridge
-
Constructor Details
-
TypeBindingContextImpl
public TypeBindingContextImpl(BeanResolver beanResolver, PojoBootstrapIntrospector introspector, PojoTypeModel<T> typeModel, IndexBindingContext indexBindingContext, PojoModelTypeRootElement<T> bridgedElement, PojoTypeIndexingDependencyConfigurationContextImpl<T> dependencyContext, Map<String, Object> params)
-
-
Method Details
-
bridge
Description copied from interface:TypeBindingContextSets the bridge implementing the type/index binding.- Specified by:
bridgein interfaceTypeBindingContext- Type Parameters:
T2- The type of bridged elements expected by the given bridge.- Parameters:
expectedEntityType- The type of the entity expected by the given bridge.bridge- The bridge to use at runtime to convert between the type and the index field value.
-
bridge
public <T2> void bridge(Class<T2> expectedEntityType, BeanHolder<? extends TypeBridge<T2>> bridgeHolder) Description copied from interface:TypeBindingContextSets the bridge implementing the type/index binding.- Specified by:
bridgein interfaceTypeBindingContext- Type Parameters:
T2- The type of bridged elements expected by the given bridge.- Parameters:
expectedEntityType- The type of the entity expected by the given bridge.bridgeHolder- ABeanHoldercontaining the bridge to use at runtime to convert between the type and the index field value. UseBeanHolder.of(Object)if you don't need any particular closing behavior.
-
bridgedElement
- Specified by:
bridgedElementin interfaceTypeBindingContext- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the bridged POJO type.
-
dependencies
- Specified by:
dependenciesin interfaceTypeBindingContext- Returns:
- An entry point allowing to declare the parts of the entity graph that this bridge will depend on.
-
typeFactory
- Specified by:
typeFactoryin interfaceTypeBindingContext- Returns:
- An entry point allowing to define a new field type.
-
indexSchemaElement
- Specified by:
indexSchemaElementin interfaceTypeBindingContext- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the index schema.
-
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:
-