Class BindableRuntimeHintsRegistrar
java.lang.Object
org.springframework.boot.context.properties.bind.BindableRuntimeHintsRegistrar
- All Implemented Interfaces:
org.springframework.aot.hint.RuntimeHintsRegistrar
public class BindableRuntimeHintsRegistrar
extends Object
implements org.springframework.aot.hint.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
-
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
(org.springframework.aot.hint.RuntimeHints hints) Contribute hints to the givenRuntimeHints
instance.void
registerHints
(org.springframework.aot.hint.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 interfaceorg.springframework.aot.hint.RuntimeHintsRegistrar
-
registerHints
public void registerHints(org.springframework.aot.hint.RuntimeHints hints) 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
-