public class ConfigAdminServiceImpl extends Object implements ConfigAdminService
Dictionarys in the domain model keyed be persistent ID (PID).SERVICE_NAME| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ConfigAdminListener listener)
Add a configuration listener.
|
static org.jboss.msc.service.ServiceController<?> |
addService(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceListener<Object>... listeners) |
Dictionary<String,String> |
getConfiguration(String pid)
Get the configuration dictionary for the given PID.
|
Set<String> |
getConfigurations()
Get the set of registered PIDs
|
ConfigAdminService |
getValue() |
boolean |
hasConfiguration(String pid)
True if there is a configuration for the given PID.
|
Dictionary<String,String> |
putConfiguration(String pid,
Dictionary<String,String> newConfig)
Put or update the configuration for the given PID.
|
Dictionary<String,String> |
removeConfiguration(String pid)
Remove the configuration for the given PID.
|
void |
removeListener(ConfigAdminListener listener)
Remove a configuration listener.
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static org.jboss.msc.service.ServiceController<?> addService(org.jboss.msc.service.ServiceTarget target,
org.jboss.msc.service.ServiceListener<Object>... listeners)
public Set<String> getConfigurations()
ConfigAdminServicegetConfigurations in interface ConfigAdminServicepublic boolean hasConfiguration(String pid)
ConfigAdminServicehasConfiguration in interface ConfigAdminServicepublic Dictionary<String,String> getConfiguration(String pid)
ConfigAdminServicegetConfiguration in interface ConfigAdminServicenullpublic Dictionary<String,String> putConfiguration(String pid, Dictionary<String,String> newConfig)
ConfigAdminServiceputConfiguration in interface ConfigAdminServicenullpublic Dictionary<String,String> removeConfiguration(String pid)
ConfigAdminServiceremoveConfiguration in interface ConfigAdminServicenullpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<ConfigAdminService>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<ConfigAdminService>public ConfigAdminService getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<ConfigAdminService>IllegalStateExceptionpublic void addListener(ConfigAdminListener listener)
ConfigAdminServiceaddListener in interface ConfigAdminServicepublic void removeListener(ConfigAdminListener listener)
ConfigAdminServiceremoveListener in interface ConfigAdminServiceCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.