Class BridgeResolver.Builder
java.lang.Object
org.hibernate.search.mapper.pojo.bridge.mapping.impl.BridgeResolver.Builder
- All Implemented Interfaces:
BridgesConfigurationContext
- Enclosing class:
- BridgeResolver
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(PojoBootstrapIntrospector introspector, TypePatternMatcherFactory typePatternMatcherFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuild()<T> DefaultBridgeDefinitionStep<?,T> Define default bridges or binders for properties with the exact given type.<T> DefaultBinderDefinitionStep<?>strictSubTypesOf(Class<T> clazz) Define default binders for properties of a subtype of the given type.<T> DefaultBinderDefinitionStep<?>subTypesOf(Class<T> clazz) Define default binders for properties with the given type or a subtype.
-
Constructor Details
-
Builder
public Builder(PojoBootstrapIntrospector introspector, TypePatternMatcherFactory typePatternMatcherFactory)
-
-
Method Details
-
exactType
Description copied from interface:BridgesConfigurationContextDefine default bridges or binders for properties with the exact given type.Properties with a supertype or subtype of the given type will not match this definition.
- Specified by:
exactTypein interfaceBridgesConfigurationContext- Type Parameters:
T- The raw type to match.- Parameters:
clazz- The raw type to match.- Returns:
- The initial step of a DSL where the default bridges can be defined for properties with a matching type.
-
subTypesOf
Description copied from interface:BridgesConfigurationContextDefine default binders for properties with the given type or a subtype.Properties with a supertype of the given type will not match this definition.
- Specified by:
subTypesOfin interfaceBridgesConfigurationContext- Type Parameters:
T- The raw type to match.- Parameters:
clazz- The raw type to match.- Returns:
- The initial step of a DSL where the default bridges can be defined for properties with a matching type.
-
strictSubTypesOf
Description copied from interface:BridgesConfigurationContextDefine default binders for properties of a subtype of the given type.Properties with the given type or with a supertype of the given type will not match this definition.
Useful to define a binder for an abstract type that cannot be bound, but whose concrete subtypes can be bound, such as
Enum.class.- Specified by:
strictSubTypesOfin interfaceBridgesConfigurationContext- Type Parameters:
T- The raw type to match.- Parameters:
clazz- The raw type to match.- Returns:
- The initial step of a DSL where the default bridges can be defined for properties with a matching type.
-
build
-