Class BindingReflectionHintsRegistrar

java.lang.Object
org.springframework.context.aot.BindingReflectionHintsRegistrar

public class BindingReflectionHintsRegistrar extends Object
Register the necessary reflection hints so that the specified type can be bound at runtime. Fields, constructors and property methods are registered, except for a set of types like those in the java. package where just the type is registered. Types are discovered transitively and generic types are registered as well.
Since:
6.0
Author:
Sebastien Deleuze
  • Constructor Details

    • BindingReflectionHintsRegistrar

      public BindingReflectionHintsRegistrar()
  • Method Details

    • registerReflectionHints

      public void registerReflectionHints(ReflectionHints hints, Type... types)
      Register the necessary reflection hints to bind the specified types.
      Parameters:
      hints - the hints instance to use
      types - the types to bind
    • shouldRegisterMembers

      protected boolean shouldRegisterMembers(Class<?> type)
      Return whether the members of the type should be registered transitively.
      Parameters:
      type - the type to evaluate
      Returns:
      true if the members of the type should be registered transitively