public class RegistryCollectorService<K,V> extends Object implements org.jboss.msc.service.Service<RegistryCollector<K,V>>, RegistryCollector<K,V>
RegistryCollector.Listener<K,V>
Constructor and Description |
---|
RegistryCollectorService() |
Modifier and Type | Method and Description |
---|---|
void |
add(Registry<K,V> registry) |
void |
addListener(RegistryCollector.Listener<K,V> listener) |
Collection<Registry<K,V>> |
getRegistries() |
RegistryCollector<K,V> |
getValue() |
void |
remove(Registry<K,V> registry) |
void |
removeListener(RegistryCollector.Listener<K,V> listener) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public RegistryCollector<K,V> getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<RegistryCollector<K,V>>
IllegalStateException
IllegalArgumentException
public void remove(Registry<K,V> registry)
remove
in interface RegistryCollector<K,V>
public void addListener(RegistryCollector.Listener<K,V> listener)
addListener
in interface RegistryCollector<K,V>
public void removeListener(RegistryCollector.Listener<K,V> listener)
removeListener
in interface RegistryCollector<K,V>
public Collection<Registry<K,V>> getRegistries()
getRegistries
in interface RegistryCollector<K,V>
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<RegistryCollector<K,V>>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<RegistryCollector<K,V>>
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.