public class MockServiceRegistration
extends java.lang.Object
implements org.osgi.framework.ServiceRegistration
setProperties(Dictionary)) as long as the underlying reference is
of type MockServiceReference.| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.ServiceReference |
reference |
| Constructor and Description |
|---|
MockServiceRegistration()
Constructs a new
MockServiceRegistration instance using
defaults. |
MockServiceRegistration(java.util.Dictionary props)
Constructs a new
MockServiceRegistration instance with the
given properties. |
MockServiceRegistration(java.lang.String[] clazz,
java.util.Dictionary props)
Constructs a new
MockServiceRegistration instance using
the given class names and properties. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.osgi.framework.ServiceReference |
getReference() |
int |
hashCode() |
void |
setProperties(java.util.Dictionary props) |
void |
setReference(org.osgi.framework.ServiceReference reference)
Sets the service reference associated with this registration.
|
void |
unregister() |
public MockServiceRegistration()
MockServiceRegistration instance using
defaults.public MockServiceRegistration(java.util.Dictionary props)
MockServiceRegistration instance with the
given properties.props - registration propertiespublic MockServiceRegistration(java.lang.String[] clazz,
java.util.Dictionary props)
MockServiceRegistration instance using
the given class names and properties.clazz - props - public org.osgi.framework.ServiceReference getReference()
getReference in interface org.osgi.framework.ServiceRegistrationpublic void setReference(org.osgi.framework.ServiceReference reference)
reference - service referencepublic void setProperties(java.util.Dictionary props)
setProperties in interface org.osgi.framework.ServiceRegistrationpublic void unregister()
unregister in interface org.osgi.framework.ServiceRegistrationpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object