public class ServiceRegistrationDecorator
extends java.lang.Object
implements org.osgi.framework.ServiceRegistration
ServiceReference which add notification for ServiceRegistration.unregister()
method when dealing with listeners.| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.ServiceRegistration |
delegate
actual service registration
|
private UnregistrationNotifier |
notifier |
| Constructor and Description |
|---|
ServiceRegistrationDecorator(org.osgi.framework.ServiceRegistration registration) |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.ServiceReference |
getReference() |
(package private) void |
setNotifier(UnregistrationNotifier notifier) |
void |
setProperties(java.util.Dictionary properties) |
java.lang.String |
toString() |
void |
unregister() |
private final org.osgi.framework.ServiceRegistration delegate
private volatile UnregistrationNotifier notifier
public ServiceRegistrationDecorator(org.osgi.framework.ServiceRegistration registration)
void setNotifier(UnregistrationNotifier notifier)
public org.osgi.framework.ServiceReference getReference()
getReference in interface org.osgi.framework.ServiceRegistrationpublic void setProperties(java.util.Dictionary properties)
setProperties in interface org.osgi.framework.ServiceRegistrationpublic void unregister()
unregister in interface org.osgi.framework.ServiceRegistrationpublic java.lang.String toString()
toString in class java.lang.Object