@Beta public interface NetworkConfigService extends ListenerService<NetworkConfigEvent,NetworkConfigListener>
| Modifier and Type | Method and Description | 
|---|---|
<S,C extends Config<S>> | 
addConfig(S subject,
         Class<C> configClass)
Creates a new configuration for the specified subject and configuration
 class. 
 | 
<S,C extends Config<S>> | 
applyConfig(S subject,
           Class<C> configClass,
           com.fasterxml.jackson.databind.JsonNode json)
Applies configuration for the specified subject and configuration
 class using the raw JSON node. 
 | 
<S,C extends Config<S>> | 
applyConfig(String subjectClassKey,
           S subject,
           String configKey,
           com.fasterxml.jackson.databind.JsonNode json)
Applies configuration for the specified subject and configuration
 key using the raw JSON object. 
 | 
<S,C extends Config<S>> | 
getConfig(S subject,
         Class<C> configClass)
Returns the configuration for the specified subject and configuration
 class if one is available; null otherwise. 
 | 
Class<? extends Config> | 
getConfigClass(String subjectClassKey,
              String configKey)
Returns the configuration class with the specified key. 
 | 
<S> Set<? extends Config<S>> | 
getConfigs(S subject)
Returns all configurations for the specified subject. 
 | 
Set<Class> | 
getSubjectClasses()
Returns the set of subject classes for which configuration may be
 available. 
 | 
SubjectFactory | 
getSubjectFactory(Class subjectClass)
Returns the subject factory for the specified class. 
 | 
SubjectFactory | 
getSubjectFactory(String subjectClassKey)
Returns the subject factory with the specified key. 
 | 
<S> Set<S> | 
getSubjects(Class<S> subjectClass)
Returns the set of subjects for which some configuration is available. 
 | 
<S,C extends Config<S>> | 
getSubjects(Class<S> subjectClass,
           Class<C> configClass)
Returns the set of subjects for which the specified configuration is
 available. 
 | 
<S> void | 
removeConfig()
Clears the complete configuration including queued. 
 | 
<S> void | 
removeConfig(S subject)
Clears the  configuration including queued based on the subject. 
 | 
<S,C extends Config<S>> | 
removeConfig(S subject,
            Class<C> configClass)
Clears any configuration for the specified subject and configuration
 class. 
 | 
<S> void | 
removeConfig(String subjectClassKey,
            S subject,
            String configKey)
Clears any configuration for the specified subject and configuration
 key. 
 | 
addListener, removeListenerSet<Class> getSubjectClasses()
SubjectFactory getSubjectFactory(String subjectClassKey)
subjectClassKey - subject class keySubjectFactory getSubjectFactory(Class subjectClass)
subjectClass - subject classClass<? extends Config> getConfigClass(String subjectClassKey, String configKey)
subjectClassKey - subject class keyconfigKey - subject class name<S> Set<S> getSubjects(Class<S> subjectClass)
S - type of subjectsubjectClass - subject class<S,C extends Config<S>> Set<S> getSubjects(Class<S> subjectClass, Class<C> configClass)
S - type of subjectC - type of configurationsubjectClass - subject classconfigClass - configuration class<S> Set<? extends Config<S>> getConfigs(S subject)
S - type of subjectsubject - configuration subject<S,C extends Config<S>> C getConfig(S subject, Class<C> configClass)
S - type of subjectC - type of configurationsubject - configuration subjectconfigClass - configuration class<S,C extends Config<S>> C addConfig(S subject, Class<C> configClass)
S - type of subjectC - type of configurationsubject - configuration subjectconfigClass - configuration class<S,C extends Config<S>> C applyConfig(S subject, Class<C> configClass, com.fasterxml.jackson.databind.JsonNode json)
S - type of subjectC - type of configurationsubject - configuration subjectconfigClass - configuration classjson - raw JSON node containing the configuration dataIllegalArgumentException - if the supplied JSON node contains
                                  invalid data<S,C extends Config<S>> C applyConfig(String subjectClassKey, S subject, String configKey, com.fasterxml.jackson.databind.JsonNode json)
S - type of subjectC - type of configurationsubjectClassKey - subject class keysubject - configuration subjectconfigKey - configuration class keyjson - raw JSON node containing the configuration dataIllegalArgumentException - if the supplied JSON node contains
                                  invalid data<S,C extends Config<S>> void removeConfig(S subject, Class<C> configClass)
S - type of subjectC - type of configurationsubject - configuration subjectconfigClass - configuration class<S> void removeConfig(String subjectClassKey, S subject, String configKey)
S - type of subjectsubjectClassKey - subject class keysubject - configuration subjectconfigKey - configuration key<S> void removeConfig(S subject)
S - type of subjectsubject - configuration subject<S> void removeConfig()
S - type of subject