Class ReachabilityMetadataProperties
java.lang.Object
org.springframework.boot.loader.tools.ReachabilityMetadataProperties
Class to work with
reachability-metadata.properties
.- Since:
- 3.0.0
- Author:
- Moritz Halbritter
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromInputStream
(InputStream inputStream) Constructs a new instance from the givenInputStream
.static String
getLocation
(LibraryCoordinates coordinates) Returns the location of the properties for the given coordinates.boolean
Returns if the dependency has been overridden.
-
Field Details
-
REACHABILITY_METADATA_PROPERTIES_LOCATION_TEMPLATE
Location of the properties file. Must be formatted usingString.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 givenInputStream
.- Parameters:
inputStream
-InputStream
to load the properties from- Returns:
- loaded properties
- Throws:
IOException
- if loading from theInputStream
went wrong
-
getLocation
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
-