Class ResourceBundleHint

java.lang.Object
org.springframework.aot.hint.ResourceBundleHint
All Implemented Interfaces:
ConditionalHint

public final class ResourceBundleHint extends Object implements ConditionalHint
A hint that describes the need to access a ResourceBundle.
Since:
6.0
Author:
Stephane Nicoll, Brian Clozel
  • Method Details

    • getBaseName

      public String getBaseName()
      Return the baseName of the resource bundle.
      Returns:
      the base name
    • getReachableType

      @Nullable public TypeReference getReachableType()
      Description copied from interface: ConditionalHint
      Return the type that should be reachable for this hint to apply, or null if this hint should always been applied.
      Specified by:
      getReachableType in interface ConditionalHint
      Returns:
      the reachable type, if any
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object