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 Details

  • Method Details

    • exactType

      public <T> DefaultBridgeDefinitionStep<?,T> exactType(Class<T> clazz)
      Description copied from interface: BridgesConfigurationContext
      Define 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:
      exactType in interface BridgesConfigurationContext
      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: BridgesConfigurationContext
      Define 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:
      subTypesOf in interface BridgesConfigurationContext
      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: BridgesConfigurationContext
      Define 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:
      strictSubTypesOf in interface BridgesConfigurationContext
      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()