类 ReachabilityMetadataProperties
java.lang.Object
org.springframework.boot.loader.tools.ReachabilityMetadataProperties
Class to work with
reachability-metadata.properties
.- 从以下版本开始:
- 3.0.0
- 作者:
- Moritz Halbritter
-
字段概要
字段 -
方法概要
修饰符和类型方法说明fromInputStream
(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.
-
字段详细资料
-
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.- 另请参阅:
-
-
方法详细资料
-
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 givenInputStream
.- 参数:
inputStream
-InputStream
to load the properties from- 返回:
- loaded properties
- 抛出:
IOException
- if loading from theInputStream
went wrong
-
getLocation
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
-