public interface IServiceRegistry
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(IRegistryListener listener)
Add an event listener.
|
void |
addExcludedComponent(IComponentIdentifier cid)
Add an excluded component.
|
<T> ISubscriptionIntermediateFuture<T> |
addQuery(ServiceQuery<T> query)
Add a service query to the registry.
|
IFuture<java.lang.Void> |
addService(ClassInfo key,
IService service)
Add a service to the registry.
|
<T> java.util.Set<ServiceQueryInfo<T>> |
getQueries(ClassInfo type)
Get queries per type.
|
java.util.Map<ClassInfo,java.util.Set<IService>> |
getServiceMap()
todo: WARNING: dangerous method that exposes the internal data structure
Get the service map.
|
java.util.Iterator<IService> |
getServices(ClassInfo type)
Get services per type.
|
IServiceRegistry |
getSubregistry(IComponentIdentifier cid)
Get a subregistry.
|
boolean |
isIncluded(IComponentIdentifier cid,
IService ser)
Test if a service is included.
|
void |
removeEventListener(IRegistryListener listener)
Remove an event listener.
|
IFuture<java.lang.Void> |
removeExcludedComponent(IComponentIdentifier cid)
Remove an excluded component.
|
void |
removeQueries(IComponentIdentifier owner)
Remove all service queries of a specific component from the registry.
|
<T> void |
removeQuery(ServiceQuery<T> query)
Remove a service query from the registry.
|
void |
removeService(ClassInfo key,
IService service)
Remove a service from the registry.
|
void |
removeSubregistry(IComponentIdentifier cid)
Remove a subregistry.
|
<T> IFuture<T> |
searchGlobalService(ClassInfo type,
IComponentIdentifier cid,
IAsyncFilter<T> filter)
Search for services.
|
<T> ISubscriptionIntermediateFuture<T> |
searchGlobalServices(ClassInfo type,
IComponentIdentifier cid,
IAsyncFilter<T> filter)
Search for services.
|
<T> T |
searchService(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope)
Search for services.
|
<T> T |
searchService(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope,
boolean excluded)
Search for services.
|
<T> IFuture<T> |
searchService(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope,
IAsyncFilter<T> filter)
Search for service.
|
<T> T |
searchService(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope,
IFilter<T> filter)
Search for service.
|
<T> java.util.Collection<T> |
searchServices(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope)
Search for services.
|
<T> ISubscriptionIntermediateFuture<T> |
searchServices(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope,
IAsyncFilter<T> filter)
Search for services.
|
<T> java.util.Collection<T> |
searchServices(ClassInfo type,
IComponentIdentifier cid,
java.lang.String scope,
IFilter<T> filter)
Search for service.
|
java.util.Iterator<IService> getServices(ClassInfo type)
type
- The interface type. If type is null all services are returned.java.util.Map<ClassInfo,java.util.Set<IService>> getServiceMap()
IFuture<java.lang.Void> addService(ClassInfo key, IService service)
sid
- The service id.void removeService(ClassInfo key, IService service)
sid
- The service id.<T> ISubscriptionIntermediateFuture<T> addQuery(ServiceQuery<T> query)
query
- ServiceQuery.<T> void removeQuery(ServiceQuery<T> query)
query
- ServiceQuery.void removeQueries(IComponentIdentifier owner)
owner
- The query owner.<T> java.util.Set<ServiceQueryInfo<T>> getQueries(ClassInfo type)
type
- The interface type. If type is null all services are returned.<T> T searchService(ClassInfo type, IComponentIdentifier cid, java.lang.String scope)
<T> T searchService(ClassInfo type, IComponentIdentifier cid, java.lang.String scope, boolean excluded)
<T> java.util.Collection<T> searchServices(ClassInfo type, IComponentIdentifier cid, java.lang.String scope)
<T> T searchService(ClassInfo type, IComponentIdentifier cid, java.lang.String scope, IFilter<T> filter)
<T> java.util.Collection<T> searchServices(ClassInfo type, IComponentIdentifier cid, java.lang.String scope, IFilter<T> filter)
<T> IFuture<T> searchService(ClassInfo type, IComponentIdentifier cid, java.lang.String scope, IAsyncFilter<T> filter)
<T> ISubscriptionIntermediateFuture<T> searchServices(ClassInfo type, IComponentIdentifier cid, java.lang.String scope, IAsyncFilter<T> filter)
<T> IFuture<T> searchGlobalService(ClassInfo type, IComponentIdentifier cid, IAsyncFilter<T> filter)
<T> ISubscriptionIntermediateFuture<T> searchGlobalServices(ClassInfo type, IComponentIdentifier cid, IAsyncFilter<T> filter)
void addExcludedComponent(IComponentIdentifier cid)
The
- component identifier.IFuture<java.lang.Void> removeExcludedComponent(IComponentIdentifier cid)
The
- component identifier.boolean isIncluded(IComponentIdentifier cid, IService ser)
ser
- The service.void addEventListener(IRegistryListener listener)
listener
- The listener.void removeEventListener(IRegistryListener listener)
listener
- The listener.IServiceRegistry getSubregistry(IComponentIdentifier cid)
cid
- The platform id.void removeSubregistry(IComponentIdentifier cid)
cid
- The platform id.