public final class StubsParser extends Object
Modifier and Type | Method and Description |
---|---|
static List<StubConfiguration> |
fromString(Collection<String> collection,
String defaultClassifier)
The string is expected to be a map with entry called "stubs" that contains a list
of Strings in the format
groupid:artifactid:version:classifier:port
groupid:artifactid:version:classifier
groupid:artifactid:version
groupid:artifactid
In the latter case the provided default stub classifier will be passed.
|
static Map<StubConfiguration,Integer> |
fromStringWithPort(String notation) |
static boolean |
hasPort(String id) |
static String |
ivyFromStringWithPort(String notation) |
public static List<StubConfiguration> fromString(Collection<String> collection, String defaultClassifier)
collection
- collection of idsdefaultClassifier
- default classifier to append if one is missingpublic static Map<StubConfiguration,Integer> fromStringWithPort(String notation)
notation
- ivy notation of stubs with portspublic static String ivyFromStringWithPort(String notation)
notation
- ivy notation of stubs with portspublic static boolean hasPort(String id)
id
- string notation of a stubtrue
if a port is there in the identifierCopyright © 2016–2021 Spring. All rights reserved.