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(java.lang.Class<T> service, RegistrationListener<T> listener)
addListener<T> void
addListener(java.lang.Class<T> service, RegistrationListener<T> listener, boolean notifyForExistingProviders)
addListenervoid
addRegistrationHook(RegistrationHook hook, boolean notifyForExistingProviders)
addRegistrationHook<T> T
findProvider(java.lang.Class<T> seviceInterface)
findProvider<T> T
findProvider(java.lang.Class<T> serviceInterface, java.lang.String filter)
findProvider<T> java.util.Collection<T>
findProviders(java.lang.Class<T> service)
findProviders<T> java.util.Collection<T>
findProviders(java.lang.Class<T> service, java.lang.String filter)
findProvidersRegistration
register(java.lang.Object serviceProvider, java.lang.Class<?>... services)
registerRegistration
register(java.lang.Object serviceProvider, java.util.Map<java.lang.String,java.lang.String> properties, java.lang.Class<?>... services)
register<T> void
removeListener(java.lang.Class<T> service, RegistrationListener<T> listener)
removeListenervoid
removeRegistrationHook(RegistrationHook hook)
removeRegistrationHookvoid
unregisterAll(java.lang.Class<?> clazz)
-
-
-
Method Detail
-
register
Registration register(java.lang.Object serviceProvider, java.lang.Class<?>... services)
register
- Parameters:
serviceProvider
- aObject
object.services
- aClass
object.- Returns:
- a
Registration
object.
-
register
Registration register(java.lang.Object serviceProvider, java.util.Map<java.lang.String,java.lang.String> properties, java.lang.Class<?>... services)
register
- Parameters:
serviceProvider
- aObject
object.properties
- aMap
object.services
- aClass
object.- Returns:
- a
Registration
object.
-
findProvider
<T> T findProvider(java.lang.Class<T> seviceInterface)
findProvider
- Type Parameters:
T
- a T object.- Parameters:
seviceInterface
- aClass
object.- Returns:
- a T object.
-
findProvider
<T> T findProvider(java.lang.Class<T> serviceInterface, java.lang.String filter)
findProvider
- Type Parameters:
T
- a T object.- Parameters:
serviceInterface
- aClass
object.filter
- aString
object.- Returns:
- a T object.
-
findProviders
<T> java.util.Collection<T> findProviders(java.lang.Class<T> service)
findProviders
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.- Returns:
- a
Collection
object.
-
findProviders
<T> java.util.Collection<T> findProviders(java.lang.Class<T> service, java.lang.String filter)
findProviders
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.filter
- aString
object.- Returns:
- a
Collection
object.
-
addListener
<T> void addListener(java.lang.Class<T> service, RegistrationListener<T> listener)
addListener
- Type Parameters:
T
- a T object.- Parameters:
service
- aClass
object.listener
- aRegistrationListener
object.
-
addListener
<T> void addListener(java.lang.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(java.lang.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(java.lang.Class<?> clazz)
- Parameters:
clazz
-
-
-