Uses of Class
io.helidon.common.HelidonServiceLoader.Builder
-
Uses of HelidonServiceLoader.Builder in io.helidon.common
Modifier and TypeMethodDescriptionHelidonServiceLoader.Builder.addExcludedClass
(Class<? extends T> excluded) Add an excluded implementation class - if such a service implementation is configured (either through Java Service loader or throughaddService(Object)
), it would be ignored.HelidonServiceLoader.Builder.addExcludedClassName
(String excludeName) Add an excluded implementation class - if such a service implementation is configured (either through Java Service loader or throughaddService(Object)
), it would be ignored.HelidonServiceLoader.Builder.addService
(T service) Add a custom service implementation to the list of services.HelidonServiceLoader.Builder.addService
(T service, double weight) Add a custom service implementation to the list of services with a custom weight.static <T> HelidonServiceLoader.Builder
<T> HelidonServiceLoader.builder
(ServiceLoader<T> serviceLoader) Create a builder for customizable service loader.HelidonServiceLoader.Builder.defaultWeight
(double defaultWeight) Configure default weight for services that do not have any.HelidonServiceLoader.Builder.replaceImplementations
(boolean replace) When configured to replace implementations, then a service implementation configured throughaddService(Object)
will replace the same implementation loaded from the Java Service loader (compared by fully qualified class name).HelidonServiceLoader.Builder.useSystemExcludes
(boolean useSysPropExclude) When configured to use system excludes, system property "io.helidon.common.serviceloader.exclude"<T> is used to get the comma separated list of service implementations to exclude them from the loaded list.HelidonServiceLoader.Builder.useSystemServiceLoader
(boolean useServiceLoader) When configured to use Java Service loader, then the result is a combination of all service implementations loaded from the Java Service loader and those added byaddService(Object)
oraddService(Object, double)
.