public interface ServiceDiscovery
Access to discovered service metadata.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
A file that contains all service provider interfaces that expose a service for JavaServiceLoader
that is used to tell Helidon Service Registry to add implementations to the registry to be discoverable in addition to services defined inDescriptors.SERVICE_REGISTRY_LOCATION
. -
Method Summary
Modifier and TypeMethodDescriptionAll discovered metadata of this service discovery.static ServiceDiscovery
create()
Create a new instance that discovers service descriptors from classpath.static ServiceDiscovery
create
(ServiceRegistryConfig config) Create a new instance that discovers service descriptors based on the configuration.static ServiceDiscovery
noop()
Service discovery that does not discover anything.
-
Field Details
-
SERVICES_LOADER_RESOURCE
A file that contains all service provider interfaces that expose a service for JavaServiceLoader
that is used to tell Helidon Service Registry to add implementations to the registry to be discoverable in addition to services defined inDescriptors.SERVICE_REGISTRY_LOCATION
.- See Also:
-
-
Method Details
-
create
Create a new instance that discovers service descriptors from classpath.- Returns:
- service discovery based on classpath
-
create
Create a new instance that discovers service descriptors based on the configuration.- Parameters:
config
- registry configuration to control discovery- Returns:
- service discovery based on classpath
-
noop
Service discovery that does not discover anything.- Returns:
- a no-op service discovery
-
allMetadata
List<DescriptorHandler> allMetadata()All discovered metadata of this service discovery.- Returns:
- all discovered metadata
-