public abstract class AbstractServiceRegistry extends Object implements ServiceRegistry
| Constructor and Description |
|---|
AbstractServiceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addServiceListener(Class<T> serviceInterface,
ServiceListener<T> listener)
This method registers a service listener associated with the supplied service interface.
|
protected void |
close(Object service)
This method closes the supplied service if it has a method
annotated with @ServiceClose.
|
protected void |
init(Object service)
This method initializes the supplied service if it has a method
annotated with @ServiceInit.
|
<T> void |
removeServiceListener(ServiceListener<T> listener)
This method unregisters a service listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServices, getSingleServicepublic <T> void addServiceListener(Class<T> serviceInterface, ServiceListener<T> listener)
addServiceListener in interface ServiceRegistryserviceInterface - The service typelistener - The service listenerpublic <T> void removeServiceListener(ServiceListener<T> listener)
removeServiceListener in interface ServiceRegistrylistener - The service listenerprotected void init(Object service)
service - The serviceprotected void close(Object service)
service - The serviceCopyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.