Interface NetworkConfigRegistry

    • Method Detail

      • registerConfigFactory

        void registerConfigFactory​(ConfigFactory configFactory)
        Registers the specified configuration factory.
        Parameters:
        configFactory - configuration factory
      • unregisterConfigFactory

        void unregisterConfigFactory​(ConfigFactory configFactory)
        Unregisters the specified configuration factory.
        Parameters:
        configFactory - configuration factory
      • getConfigFactories

        Set<ConfigFactory> getConfigFactories()
        Returns set of all registered configuration factories.
        Returns:
        set of config factories
      • getConfigFactories

        <S,​C extends Config<S>> Set<ConfigFactory<S,​C>> getConfigFactories​(Class<S> subjectClass)
        Returns set of all configuration factories registered for the specified class of subject.
        Type Parameters:
        S - type of subject
        C - type of configuration
        Parameters:
        subjectClass - subject class
        Returns:
        set of config factories
      • getConfigFactory

        <S,​C extends Config<S>> ConfigFactory<S,​C> getConfigFactory​(Class<C> configClass)
        Returns the configuration factory that produces the specified class of configurations.
        Type Parameters:
        S - type of subject
        C - type of configuration
        Parameters:
        configClass - configuration class
        Returns:
        config factory