Interface ConfiguredServiceProvider<T,CB>

Type Parameters:
T - the type of this service provider manages
CB - 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

public interface ConfiguredServiceProvider<T,CB> extends ServiceProvider<T>, ConfigBeanFactory<CB>
An extension to ServiceProvider that represents a config-driven service.
  • 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

      void registerConfigBean(NamedInstance<CB> configBean)
      Register a named config bean as a child of this root provider.
      Parameters:
      configBean - config bean that drives an instance