Class ReachabilityMetadataProperties

java.lang.Object
org.springframework.boot.loader.tools.ReachabilityMetadataProperties

public final class ReachabilityMetadataProperties extends Object
Class to work with reachability-metadata.properties.
Since:
3.0.0
Author:
Moritz Halbritter
  • Field Details

    • REACHABILITY_METADATA_PROPERTIES_LOCATION_TEMPLATE

      public static final String REACHABILITY_METADATA_PROPERTIES_LOCATION_TEMPLATE
      Location of the properties file. Must be formatted using String.format(String, Object...) with the group id, artifact id and version of the dependency.
      See Also:
  • Method Details

    • isOverridden

      public boolean isOverridden()
      Returns if the dependency has been overridden.
      Returns:
      true if the dependency has been overridden
    • fromInputStream

      public static ReachabilityMetadataProperties fromInputStream(InputStream inputStream) throws IOException
      Constructs a new instance from the given InputStream.
      Parameters:
      inputStream - InputStream to load the properties from
      Returns:
      loaded properties
      Throws:
      IOException - if loading from the InputStream went wrong
    • getLocation

      public static String getLocation(LibraryCoordinates coordinates)
      Returns the location of the properties for the given coordinates.
      Parameters:
      coordinates - library coordinates for which the property file location should be returned
      Returns:
      location of the properties