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>,ConfigBeanMapper,InjectionPointProvider<T>,Provider<T>,ServiceProvider<T>,Weighted
- All Known Implementing Classes:
AbstractConfiguredServiceProvider
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.The config bean attributes for ourConfigBean.Class<?>TheConfigBeantype that is used to configure this provider.io.helidon.builder.config.spi.MetaConfigBeanInfoThe meta config bean information associated with this service provider'sConfigBean.Class<?>The type of the service being managed.toConfigBean(Config config) Builds a config bean instance using the configuration.toConfigBeanBuilder(Config config) Similar totoConfigBean(io.helidon.common.config.Config), but instead this method builds a config bean builder instance using the configuration.toConfigBeanInstanceId(CB configBean) Gets the internal config bean instance id for the provided config bean.<R> voidvisitAttributes(CB configBean, AttributeVisitor<Object> visitor, R userDefinedContext) Visit the attributes of the config bean, calling the visitor for each attribute in the hierarchy.Methods inherited from interface io.helidon.builder.config.spi.ConfigBeanMapper
toConfigBeanMethods inherited from interface io.helidon.pico.api.InjectionPointProvider
first, get, listMethods inherited from interface io.helidon.pico.api.ServiceProvider
activator, currentActivationPhase, deActivator, dependencies, description, id, isProvider, postConstructMethod, preDestroyMethod, serviceInfo, serviceProviderBindable
-
Method Details
-
serviceType
Class<?> serviceType()The type of the service being managed.- Returns:
- the service type being managed
-
configBeanType
Class<?> configBeanType()TheConfigBeantype that is used to configure this provider.- Returns:
- the
ConfigBeantype that is used to configure this provider
-
metaConfigBeanInfo
io.helidon.builder.config.spi.MetaConfigBeanInfo metaConfigBeanInfo()The meta config bean information associated with this service provider'sConfigBean.- Returns:
- the
MetaConfigBeanInfofor this config bean
-
configBeanAttributes
The config bean attributes for ourConfigBean. Generally this method is for internal use only. Most should usevisitAttributes(CB, io.helidon.builder.AttributeVisitor<java.lang.Object>, R)instead of this method.- Returns:
- the config bean attributes
-
toConfigBean
Builds a config bean instance using the configuration.- Parameters:
config- the backing configuration- Returns:
- the generated config bean instance
-
toConfigBeanBuilder
Similar totoConfigBean(io.helidon.common.config.Config), but instead this method builds a config bean builder instance using the configuration.- Parameters:
config- the backing configuration- Returns:
- the generated config bean instance
-
visitAttributes
Visit the attributes of the config bean, calling the visitor for each attribute in the hierarchy.- Type Parameters:
R- the type of the user defined context- Parameters:
configBean- the config bean to visitvisitor- the attribute visitoruserDefinedContext- the optional user define context
-
toConfigBeanInstanceId
Gets the internal config bean instance id for the provided config bean.- Parameters:
configBean- the config bean- Returns:
- the config bean instance id
-
configBean
Returns the config bean associated with this managed service provider.- Returns:
- the config bean associated with this managed service provider
-