public interface ServiceRankingInterceptor extends DependencyInterceptor
TARGET_PROPERTY
Modifier and Type | Method and Description |
---|---|
java.util.List<org.osgi.framework.ServiceReference> |
getServiceReferences(DependencyModel dependency,
java.util.List<org.osgi.framework.ServiceReference> matching)
Gets the sorted set of selected reference.
|
java.util.List<org.osgi.framework.ServiceReference> |
onServiceArrival(DependencyModel dependency,
java.util.List<org.osgi.framework.ServiceReference> matching,
org.osgi.framework.ServiceReference<?> reference)
A new service arrives in the matching set.
|
java.util.List<org.osgi.framework.ServiceReference> |
onServiceDeparture(DependencyModel dependency,
java.util.List<org.osgi.framework.ServiceReference> matching,
org.osgi.framework.ServiceReference<?> reference)
A service leaves the matching set.
|
java.util.List<org.osgi.framework.ServiceReference> |
onServiceModified(DependencyModel dependency,
java.util.List<org.osgi.framework.ServiceReference> matching,
org.osgi.framework.ServiceReference<?> reference)
A service from the matching set was modified.
|
close, open
java.util.List<org.osgi.framework.ServiceReference> getServiceReferences(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching)
dependency
- the dependencymatching
- the set of service to sortjava.util.List<org.osgi.framework.ServiceReference> onServiceArrival(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching, org.osgi.framework.ServiceReference<?> reference)
dependency
- the dependencymatching
- the set of matching servicereference
- the arriving referencejava.util.List<org.osgi.framework.ServiceReference> onServiceDeparture(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching, org.osgi.framework.ServiceReference<?> reference)
dependency
- the dependencymatching
- the set of matching servicereference
- the leaving referencejava.util.List<org.osgi.framework.ServiceReference> onServiceModified(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching, org.osgi.framework.ServiceReference<?> reference)
dependency
- the dependencymatching
- the set of matching servicereference
- the modified serviceCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.