Uses of Class
org.springframework.aot.hint.RuntimeHints
Packages that use RuntimeHints
Package
Description
Support for recording method invocations relevant to
RuntimeHints
metadata.Support classes for components that contribute generated code equivalent to a
runtime behavior.
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Annotation support for runtime hints.
Predicate support for runtime hints.
Convenience classes for using runtime hints.
Support for generating GraalVM native configuration from runtime hints.
Testing support for the
RuntimeHintsAgent
.AOT support for application contexts.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Ahead-of-time (AOT) support for the Spring TestContext Framework.
JDBC support classes for the Spring TestContext Framework,
including support for declarative SQL script execution via
@Sql
.-
Uses of RuntimeHints in org.springframework.aot.agent
Methods in org.springframework.aot.agent with parameters of type RuntimeHintsModifier and TypeMethodDescriptionboolean
RecordedInvocation.matches
(RuntimeHints hints) Whether the given hints cover the current invocation. -
Uses of RuntimeHints in org.springframework.aot.generate
Methods in org.springframework.aot.generate that return RuntimeHintsModifier and TypeMethodDescriptionDefaultGenerationContext.getRuntimeHints()
GenerationContext.getRuntimeHints()
Get theRuntimeHints
used by the context.Constructors in org.springframework.aot.generate with parameters of type RuntimeHintsModifierConstructorDescriptionDefaultGenerationContext
(ClassNameGenerator classNameGenerator, GeneratedFiles generatedFiles, RuntimeHints runtimeHints) Create a newDefaultGenerationContext
instance backed by the specifiedClassNameGenerator
,GeneratedFiles
, andRuntimeHints
. -
Uses of RuntimeHints in org.springframework.aot.hint
Methods in org.springframework.aot.hint with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
RuntimeHintsRegistrar.registerHints
(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHints
instance. -
Uses of RuntimeHints in org.springframework.aot.hint.annotation
Methods in org.springframework.aot.hint.annotation with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
ReflectiveRuntimeHintsRegistrar.registerRuntimeHints
(RuntimeHints runtimeHints, Class<?>... types) Register the relevant runtime hints for elements that are annotated withReflective
. -
Uses of RuntimeHints in org.springframework.aot.hint.predicate
Methods in org.springframework.aot.hint.predicate that return types with arguments of type RuntimeHintsModifier and TypeMethodDescriptionReturn a predicate that checks whether a resource hint is registered for the given bundle name.ProxyHintsPredicates.forInterfaces
(Class<?>... interfaces) Return a predicate that checks whether aJdkProxyHint
is registered for the given interfaces.ProxyHintsPredicates.forInterfaces
(TypeReference... interfaces) Return a predicate that checks whether aJdkProxyHint
is registered for the given interfaces.ResourceHintsPredicates.forResource
(String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name.ResourceHintsPredicates.forResource
(TypeReference type, String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package.Return a predicate that checks whether aserialization hint
is registered for the given type.SerializationHintsPredicates.onType
(TypeReference typeReference) Return a predicate that checks whether aserialization hint
is registered for the given type reference.ReflectionHintsPredicates.TypeHintPredicate.withAnyMemberCategory
(MemberCategory... memberCategories) Refine the current predicate to match if any of the givencategories
is present.ReflectionHintsPredicates.TypeHintPredicate.withMemberCategories
(MemberCategory... memberCategories) Refine the current predicate to only match if the givencategories
are present.ReflectionHintsPredicates.TypeHintPredicate.withMemberCategory
(MemberCategory memberCategory) Refine the current predicate to only match if the givenMemberCategory
is present.Methods in org.springframework.aot.hint.predicate with parameters of type RuntimeHintsModifier and TypeMethodDescriptionboolean
ReflectionHintsPredicates.ConstructorHintPredicate.test
(RuntimeHints runtimeHints) boolean
ReflectionHintsPredicates.FieldHintPredicate.test
(RuntimeHints runtimeHints) boolean
ReflectionHintsPredicates.MethodHintPredicate.test
(RuntimeHints runtimeHints) boolean
ReflectionHintsPredicates.TypeHintPredicate.test
(RuntimeHints hints) -
Uses of RuntimeHints in org.springframework.aot.hint.support
Methods in org.springframework.aot.hint.support with parameters of type RuntimeHintsModifier and TypeMethodDescriptionstatic void
ClassHintUtils.registerProxyIfNecessary
(Class<?> candidateClass, RuntimeHints runtimeHints) Register a proxy hint for a JDK proxy or corresponding reflection hints for a CGLIB-generated subclass, if necessary. -
Uses of RuntimeHints in org.springframework.aot.nativex
Methods in org.springframework.aot.nativex with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
NativeConfigurationWriter.write
(RuntimeHints hints) Write the GraalVM native configuration from the provided hints. -
Uses of RuntimeHints in org.springframework.aot.test.agent
Methods in org.springframework.aot.test.agent with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
RuntimeHintsInvocationsAssert.match
(RuntimeHints runtimeHints) Verifies that each recorded invocation match at least once hint in the providedRuntimeHints
.org.assertj.core.api.ListAssert<RecordedInvocation>
RuntimeHintsInvocationsAssert.notMatching
(RuntimeHints runtimeHints) -
Uses of RuntimeHints in org.springframework.context.aot
Methods in org.springframework.context.aot with parameters of type RuntimeHintsModifier and TypeMethodDescriptionprotected void
AbstractAotProcessor.writeHints
(RuntimeHints hints) -
Uses of RuntimeHints in org.springframework.context.support
Methods in org.springframework.context.support with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
GenericApplicationContext.refreshForAotProcessing
(RuntimeHints runtimeHints) Load or refresh the persistent representation of the configuration up to a point where the underlying bean factory is ready to create bean instances. -
Uses of RuntimeHints in org.springframework.test.context.aot
Methods in org.springframework.test.context.aot that return RuntimeHintsModifier and TypeMethodDescriptionfinal RuntimeHints
TestContextAotGenerator.getRuntimeHints()
Get theRuntimeHints
gathered during AOT processing.Methods in org.springframework.test.context.aot with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
AotTestExecutionListener.processAheadOfTime
(RuntimeHints runtimeHints, Class<?> testClass, ClassLoader classLoader) Process the supplied test class ahead-of-time using the givenRuntimeHints
instance.void
TestRuntimeHintsRegistrar.registerHints
(RuntimeHints runtimeHints, Class<?> testClass, ClassLoader classLoader) Contribute hints to the givenRuntimeHints
instance.Constructors in org.springframework.test.context.aot with parameters of type RuntimeHintsModifierConstructorDescriptionTestContextAotGenerator
(GeneratedFiles generatedFiles, RuntimeHints runtimeHints) TestContextAotGenerator
(GeneratedFiles generatedFiles, RuntimeHints runtimeHints, boolean failOnError) Create a newTestContextAotGenerator
that uses the suppliedGeneratedFiles
,RuntimeHints
, andfailOnError
flag. -
Uses of RuntimeHints in org.springframework.test.context.jdbc
Methods in org.springframework.test.context.jdbc with parameters of type RuntimeHintsModifier and TypeMethodDescriptionvoid
SqlScriptsTestExecutionListener.processAheadOfTime
(RuntimeHints runtimeHints, Class<?> testClass, ClassLoader classLoader) Process the supplied test class and its methods and register run-time hints for any SQL scripts configured or detected as classpath resources via@Sql
.