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
ModifierConstructorDescriptionprotected
BindableRuntimeHintsRegistrar
(Class<?>... types) Create a newBindableRuntimeHintsRegistrar
for the specified types.protected
BindableRuntimeHintsRegistrar
(Bindable<?>... bindables) Create a newBindableRuntimeHintsRegistrar
for the specified bindables. -
Method Summary
Modifier and TypeMethodDescriptionforBindables
(Iterable<Bindable<?>> bindables) Create a newBindableRuntimeHintsRegistrar
for the specified bindables.forBindables
(Bindable<?>... bindables) Create a newBindableRuntimeHintsRegistrar
for the specified bindables.Create a newBindableRuntimeHintsRegistrar
for the specified types.Create a newBindableRuntimeHintsRegistrar
for the specified types.void
registerHints
(RuntimeHints hints) Contribute hints to the givenRuntimeHints
instance.void
registerHints
(RuntimeHints hints, ClassLoader classLoader)
-
Constructor Details
-
BindableRuntimeHintsRegistrar
Create a newBindableRuntimeHintsRegistrar
for the specified types.- Parameters:
types
- the types to process
-
BindableRuntimeHintsRegistrar
Create a newBindableRuntimeHintsRegistrar
for the specified bindables.- Parameters:
bindables
- the bindables to process- Since:
- 3.0.8
-
-
Method Details
-
registerHints
- Specified by:
registerHints
in interfaceRuntimeHintsRegistrar
-
registerHints
Contribute hints to the givenRuntimeHints
instance.- Parameters:
hints
- the hints contributed so far for the deployment unit
-
forTypes
Create a newBindableRuntimeHintsRegistrar
for the specified types.- Parameters:
types
- the types to process- Returns:
- a new
BindableRuntimeHintsRegistrar
instance
-
forTypes
Create a newBindableRuntimeHintsRegistrar
for the specified types.- Parameters:
types
- the types to process- Returns:
- a new
BindableRuntimeHintsRegistrar
instance
-
forBindables
Create a newBindableRuntimeHintsRegistrar
for the specified bindables.- Parameters:
bindables
- the bindables to process- Returns:
- a new
BindableRuntimeHintsRegistrar
instance - Since:
- 3.0.8
-
forBindables
Create a newBindableRuntimeHintsRegistrar
for the specified bindables.- Parameters:
bindables
- the bindables to process- Returns:
- a new
BindableRuntimeHintsRegistrar
instance - Since:
- 3.0.8
-