public class EmptyBasedServiceRankingInterceptor extends java.lang.Object implements ServiceRankingInterceptor
TARGET_PROPERTY| Constructor and Description |
|---|
EmptyBasedServiceRankingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(DependencyModel dependency)
The interceptor won't be use anymore by the given dependency.
|
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.
|
void |
open(DependencyModel dependency)
The interceptor is plugged to the given dependency.
|
public void open(DependencyModel dependency)
DependencyInterceptoropen in interface DependencyInterceptordependency - the dependency starting using the interceptor.public java.util.List<org.osgi.framework.ServiceReference> getServiceReferences(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching)
ServiceRankingInterceptorgetServiceReferences in interface ServiceRankingInterceptordependency - the dependencymatching - the set of service to sortpublic java.util.List<org.osgi.framework.ServiceReference> onServiceArrival(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching, org.osgi.framework.ServiceReference<?> reference)
ServiceRankingInterceptoronServiceArrival in interface ServiceRankingInterceptordependency - the dependencymatching - the set of matching servicereference - the arriving referencepublic java.util.List<org.osgi.framework.ServiceReference> onServiceDeparture(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching, org.osgi.framework.ServiceReference<?> reference)
ServiceRankingInterceptoronServiceDeparture in interface ServiceRankingInterceptordependency - the dependencymatching - the set of matching servicereference - the leaving referencepublic java.util.List<org.osgi.framework.ServiceReference> onServiceModified(DependencyModel dependency, java.util.List<org.osgi.framework.ServiceReference> matching, org.osgi.framework.ServiceReference<?> reference)
ServiceRankingInterceptoronServiceModified in interface ServiceRankingInterceptordependency - the dependencymatching - the set of matching servicereference - the modified servicepublic void close(DependencyModel dependency)
DependencyInterceptorclose in interface DependencyInterceptordependency - the dependency stopping its use of the interceptorCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.