Interface BridgesConfigurationContext


  • public interface BridgesConfigurationContext
    • Method Detail

      • exactType

        <T> DefaultBridgeDefinitionStep<?,​T> exactType​(Class<T> clazz)
        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.

        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

        @Incubating
        <T> DefaultBinderDefinitionStep<?> subTypesOf​(Class<T> clazz)
        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.

        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

        @Incubating
        <T> DefaultBinderDefinitionStep<?> strictSubTypesOf​(Class<T> clazz)
        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.

        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.