Top Description Methods
org.springframework.aot.hint

public Interface RuntimeHintsRegistrar

Known Direct Implementers
org.springframework.aot.hint.support.KotlinDetectorRuntimeHints, org.springframework.aot.hint.support.ObjectToObjectConverterRuntimeHints, org.springframework.aot.hint.support.PathMatchingResourcePatternResolverRuntimeHints, org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints, org.springframework.aot.hint.support.SpringPropertiesRuntimeHints
Annotations
@FunctionalInterface
Imports
org.springframework.lang.Nullable

Contract for registering RuntimeHints based on the ClassLoader of the deployment unit. Implementations should, if possible, use the specified ClassLoader to determine if hints have to be contributed.

Implementations of this interface can be registered dynamically by using @ImportRuntimeHints or statically in META-INF/spring/aot.factories by using the FQN of this interface as the key. A standard no-arg constructor is required for implementations.

Authors
Brian Clozel, Stephane Nicoll
Since
6.0

Method Summary

Modifier and TypeMethod and Description
public void
registerHints(RuntimeHints
the hints contributed so far for the deployment unit
hints
,
ClassLoader
the classloader, or null if even the system ClassLoader isn't accessible
classLoader
)

Contribute hints to the given RuntimeHints instance.

Method Detail

registerHintsback to summary
public void registerHints(RuntimeHints hints, ClassLoader classLoader)

Contribute hints to the given RuntimeHints instance.

Parameters
hints:RuntimeHints

the hints contributed so far for the deployment unit

classLoader:ClassLoader

the classloader, or null if even the system ClassLoader isn't accessible