Package org.opennms.core.soa
Interface ServiceRegistry
-
- All Known Implementing Classes:
DefaultServiceRegistry
public interface ServiceRegistry
ServiceRegistry- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> void
addListener(Class<T> service, RegistrationListener<T> listener)
addListener<T> void
addListener(Class<T> service, RegistrationListener<T> listener, boolean notifyForExistingProviders)
addListenervoid
addRegistrationHook(RegistrationHook hook, boolean notifyForExistingProviders)
addRegistrationHook<T> T
findProvider(Class<T> seviceInterface)
findProvider<T> T
findProvider(Class<T> serviceInterface, String filter)
findProvider<T> Collection<T>
findProviders(Class<T> service)
findProviders<T> Collection<T>
findProviders(Class<T> service, String filter)
findProvidersRegistration
register(Object serviceProvider, Class<?>... services)
registerRegistration
register(Object serviceProvider, Map<String,String> properties, Class<?>... services)
register<T> void
removeListener(Class<T> service, RegistrationListener<T> listener)
removeListenervoid
removeRegistrationHook(RegistrationHook hook)
removeRegistrationHookvoid
unregisterAll(Class<?> clazz)
-
-
-
Method Detail
-
register
Registration register(Object serviceProvider, Class<?>... services)
register
- Parameters:
serviceProvider
- aObject
object.services
- aClass
object.- Returns:
- a
Registration
object.
-
register
Registration register(Object serviceProvider, Map<String,String> properties, Class<?>... services)
register
- Parameters:
serviceProvider
- aObject
object.properties
- aMap
object.services
- aClass
object.- Returns:
- a
Registration
object.
-
findProvider
<T> T findProvider(Class<T> seviceInterface)
findProvider
- Type Parameters:
T
- a T object.- Parameters:
seviceInterface
- aClass
object.- Returns:
- a T object.
-
findProviders
<T> Collection<T> findProviders(Class<T> service)
findProviders
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.- Returns:
- a
Collection
object.
-
findProviders
<T> Collection<T> findProviders(Class<T> service, String filter)
findProviders
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.filter
- aString
object.- Returns:
- a
Collection
object.
-
addListener
<T> void addListener(Class<T> service, RegistrationListener<T> listener)
addListener
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.listener
- aRegistrationListener
object.
-
addListener
<T> void addListener(Class<T> service, RegistrationListener<T> listener, boolean notifyForExistingProviders)
addListener
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.listener
- aRegistrationListener
object.notifyForExistingProviders
- a boolean.
-
removeListener
<T> void removeListener(Class<T> service, RegistrationListener<T> listener)
removeListener
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.listener
- aRegistrationListener
object.
-
addRegistrationHook
void addRegistrationHook(RegistrationHook hook, boolean notifyForExistingProviders)
addRegistrationHook
- Parameters:
hook
- aRegistrationHook
object.notifyForExistingProviders
- a boolean.
-
removeRegistrationHook
void removeRegistrationHook(RegistrationHook hook)
removeRegistrationHook
- Parameters:
hook
- aRegistrationHook
object.
-
unregisterAll
void unregisterAll(Class<?> clazz)
- Parameters:
clazz
-
-
-