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 via a property.
This class can be used as a base-class, or instantiated using the forTypes
factory methods.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBindableRuntimeHintsRegistrar(Class<?>... types) Create a newBindableRuntimeHintsRegistrarfor the specified types. -
Method Summary
Modifier and TypeMethodDescriptionCreate a newBindableRuntimeHintsRegistrarfor the specified types.Create a newBindableRuntimeHintsRegistrarfor the specified types.voidregisterHints(org.springframework.aot.hint.RuntimeHints hints) Contribute hints to the givenRuntimeHintsinstance.voidregisterHints(org.springframework.aot.hint.RuntimeHints hints, ClassLoader classLoader)
-
Constructor Details
-
BindableRuntimeHintsRegistrar
Create a newBindableRuntimeHintsRegistrarfor the specified types.- Parameters:
types- the types to process
-
-
Method Details
-
registerHints
- Specified by:
registerHintsin interfaceorg.springframework.aot.hint.RuntimeHintsRegistrar
-
registerHints
public void registerHints(org.springframework.aot.hint.RuntimeHints hints) 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
-