public interface Services
Facility to query service addresses. Instances of this interface should be
acquired from
Lookup.Provider.getLookup().-
Method Summary
Modifier and TypeMethodDescriptionLocate the primary implementation of the requested service, if available.Locate all the available implementations of the requested service, if available.
-
Method Details
-
locate
Locate the primary implementation of the requested service, if available.- Parameters:
service- class of service to locate- Returns:
- optional of service address
-
locateAll
Locate all the available implementations of the requested service, if available. The primary implementation will be the first implementation in the stream.- Parameters:
service- class of service to locate- Returns:
- stream of addresses, or empty stream
-