Class BindableRuntimeHintsRegistrar
java.lang.Object
org.springframework.boot.context.properties.bind.BindableRuntimeHintsRegistrar
- All Implemented Interfaces:
RuntimeHintsRegistrar
RuntimeHintsRegistrar that can be used to register ReflectionHints for
Bindable types, discovering any nested type it may expose through a property.
This class can be used as a base-class, or instantiated using the forTypes and
forBindables factory methods.
- Since:
- 3.0.0
- Author:
- Andy Wilkinson, Moritz Halbritter, Sebastien Deleuze, Phillip Webb
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBindableRuntimeHintsRegistrar(Class<?>... types) Create a newBindableRuntimeHintsRegistrarfor the specified types.protectedBindableRuntimeHintsRegistrar(Bindable<?>... bindables) Create a newBindableRuntimeHintsRegistrarfor the specified bindables. -
Method Summary
Modifier and TypeMethodDescriptionforBindables(Iterable<Bindable<?>> bindables) Create a newBindableRuntimeHintsRegistrarfor the specified bindables.forBindables(Bindable<?>... bindables) Create a newBindableRuntimeHintsRegistrarfor the specified bindables.Create a newBindableRuntimeHintsRegistrarfor the specified types.Create a newBindableRuntimeHintsRegistrarfor the specified types.voidregisterHints(RuntimeHints hints) Contribute hints to the givenRuntimeHintsinstance.voidregisterHints(RuntimeHints hints, ClassLoader classLoader)
-
Constructor Details
-
BindableRuntimeHintsRegistrar
Create a newBindableRuntimeHintsRegistrarfor the specified types.- Parameters:
types- the types to process
-
BindableRuntimeHintsRegistrar
Create a newBindableRuntimeHintsRegistrarfor the specified bindables.- Parameters:
bindables- the bindables to process- Since:
- 3.0.8
-
-
Method Details
-
registerHints
- Specified by:
registerHintsin interfaceRuntimeHintsRegistrar
-
registerHints
Contribute hints to the givenRuntimeHintsinstance.- Parameters:
hints- the hints contributed so far for the deployment unit
-
forTypes
Create a newBindableRuntimeHintsRegistrarfor the specified types.- Parameters:
types- the types to process- Returns:
- a new
BindableRuntimeHintsRegistrarinstance
-
forTypes
Create a newBindableRuntimeHintsRegistrarfor the specified types.- Parameters:
types- the types to process- Returns:
- a new
BindableRuntimeHintsRegistrarinstance
-
forBindables
Create a newBindableRuntimeHintsRegistrarfor the specified bindables.- Parameters:
bindables- the bindables to process- Returns:
- a new
BindableRuntimeHintsRegistrarinstance - Since:
- 3.0.8
-
forBindables
Create a newBindableRuntimeHintsRegistrarfor the specified bindables.- Parameters:
bindables- the bindables to process- Returns:
- a new
BindableRuntimeHintsRegistrarinstance - Since:
- 3.0.8
-