public interface ServiceBindingInterceptor extends DependencyInterceptor
TARGET_PROPERTY
Modifier and Type | Method and Description |
---|---|
<S> S |
getService(DependencyModel dependency,
org.osgi.framework.ServiceReference<S> reference,
S service)
Notification method when a dependency is weaving a new service binding.
|
<S> void |
ungetService(DependencyModel dependency,
org.osgi.framework.ServiceReference<S> reference)
Notification method when a dependency is un-weaving a service binding.
|
close, open
<S> S getService(DependencyModel dependency, org.osgi.framework.ServiceReference<S> reference, S service)
null
object,
but the receive service object if it does not want to do anything with the service object.
When the interceptor modifies the service object, the returned object must be
compatible with the dependency specification.
The received service object may already have been wrapped by binding interceptors called before the
current one.S
- the service specificationdependency
- the dependencyreference
- the service reference boundservice
- the service objectnull
.<S> void ungetService(DependencyModel dependency, org.osgi.framework.ServiceReference<S> reference)
S
- the service specificationdependency
- the dependencyreference
- the unbound service referenceCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.