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)
DependencyInterceptor
open
in interface DependencyInterceptor
dependency
- 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)
ServiceRankingInterceptor
getServiceReferences
in interface ServiceRankingInterceptor
dependency
- 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)
ServiceRankingInterceptor
onServiceArrival
in interface ServiceRankingInterceptor
dependency
- 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)
ServiceRankingInterceptor
onServiceDeparture
in interface ServiceRankingInterceptor
dependency
- 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)
ServiceRankingInterceptor
onServiceModified
in interface ServiceRankingInterceptor
dependency
- the dependencymatching
- the set of matching servicereference
- the modified servicepublic void close(DependencyModel dependency)
DependencyInterceptor
close
in interface DependencyInterceptor
dependency
- the dependency stopping its use of the interceptorCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.