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 via a property.
This class can be used as a base-class, or instantiated using the forTypes
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. -
Method Summary
Modifier and TypeMethodDescriptionCreate 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
-
-
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
-