Interface ConfiguredServiceProvider<T,CB>
- Type Parameters:
T- the type of this service provider managesCB- the type of config beans that this service is configured by
- All Superinterfaces:
Comparable<Weighted>,ConfigBeanFactory<CB>,InjectionPointProvider<T>,Provider<T>,ServiceProvider<T>,Weighted
- All Known Implementing Classes:
ConfigDrivenServiceProviderBase
An extension to
ServiceProvider that represents a config-driven service.-
Field Summary
Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT -
Method Summary
Modifier and TypeMethodDescriptionReturns the config bean associated with this managed service provider.voidregisterConfigBean(NamedInstance<CB> configBean) Register a named config bean as a child of this root provider.Methods inherited from interface io.helidon.inject.configdriven.api.ConfigBeanFactory
configBeanType, createConfigBeansMethods inherited from interface io.helidon.inject.api.InjectionPointProvider
first, get, listMethods inherited from interface io.helidon.inject.api.ServiceProvider
activator, currentActivationPhase, deActivator, dependencies, description, id, isProvider, postConstructMethod, preDestroyMethod, serviceInfo, serviceProviderBindable, serviceType
-
Method Details
-
configBean
CB configBean()Returns the config bean associated with this managed service provider.- Returns:
- the config bean associated with this managed service provider
- Throws:
NullPointerException- if this is the root provider
-
registerConfigBean
Register a named config bean as a child of this root provider.- Parameters:
configBean- config bean that drives an instance
-