Uses of Class
io.helidon.common.serviceloader.HelidonServiceLoader.Builder
Packages that use HelidonServiceLoader.Builder
-
Uses of HelidonServiceLoader.Builder in io.helidon.common.serviceloader
Methods in io.helidon.common.serviceloader that return HelidonServiceLoader.BuilderModifier 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, int priority) Add a custom service implementation to the list of services with a custom priority.static <T> HelidonServiceLoader.Builder<T>
HelidonServiceLoader.builder
(ServiceLoader<T> serviceLoader) Create a builder for customizable service loader.HelidonServiceLoader.Builder.defaultPriority
(int defaultPriority) Configure default priority 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" 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, int)
.