Class BridgeResolver.Builder
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.bridge.mapping.impl.BridgeResolver.Builder
-
- All Implemented Interfaces:
BridgesConfigurationContext
- Enclosing class:
- BridgeResolver
public static class BridgeResolver.Builder extends Object implements BridgesConfigurationContext
-
-
Constructor Summary
Constructors Constructor Description Builder(PojoBootstrapIntrospector introspector, TypePatternMatcherFactory typePatternMatcherFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BridgeResolverbuild()<T> DefaultBridgeDefinitionStep<?,T>exactType(Class<T> clazz)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 Detail
-
Builder
public Builder(PojoBootstrapIntrospector introspector, TypePatternMatcherFactory typePatternMatcherFactory)
-
-
Method Detail
-
exactType
public <T> DefaultBridgeDefinitionStep<?,T> exactType(Class<T> clazz)
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
public <T> DefaultBinderDefinitionStep<?> subTypesOf(Class<T> clazz)
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
public <T> DefaultBinderDefinitionStep<?> strictSubTypesOf(Class<T> clazz)
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
public BridgeResolver build()
-
-