Resolve a group from a target name, a string.
Resolve a group from a target name, a string. Resolve uses
Resolvers to do this. These are loaded via the Java
ServiceLoader
mechanism. The default resolver is "inet", resolving DNS
name/port pairs.
Target names have a simple grammar: The name of the resolver precedes the name of the address to be resolved, separated by an exclamation mark ("bang"). For example: inet!twitter.com:80 resolves the name "twitter.com:80" using the "inet" resolver. If no resolver name is present, the inet resolver is used.
Names resolved by this mechanism are also a
NamedGroup. By default, this name is
simply the target string, but it can be overriden by prefixing
a name separated by an equals sign from the rest of the target.
For example, the target "www=inet!google.com:80" resolves
"google.com:80" with the inet resolver, but the returned group's
NamedGroup name is "www".