类 ReachabilityMetadataProperties

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

public final class ReachabilityMetadataProperties extends Object
Class to work with reachability-metadata.properties.
从以下版本开始:
3.0.0
作者:
Moritz Halbritter
  • 字段详细资料

    • 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.
      另请参阅:
  • 方法详细资料

    • isOverridden

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

      public static ReachabilityMetadataProperties fromInputStream(InputStream inputStream) throws IOException
      Constructs a new instance from the given InputStream.
      参数:
      inputStream - InputStream to load the properties from
      返回:
      loaded properties
      抛出:
      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.
      参数:
      coordinates - library coordinates for which the property file location should be returned
      返回:
      location of the properties