|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gemini.blueprint.mock.MockServiceRegistration
public class MockServiceRegistration
ServiceRegistration mock.
The mock allows the service properties modification (throughsetProperties(Dictionary)) as long as the underlying reference is
of type MockServiceReference.
| Constructor Summary | |
|---|---|
MockServiceRegistration()
Constructs a new MockServiceRegistration instance using
defaults. |
|
MockServiceRegistration(Dictionary props)
Constructs a new MockServiceRegistration instance with the
given properties. |
|
MockServiceRegistration(String[] clazz,
Dictionary props)
Constructs a new MockServiceRegistration instance using
the given class names and properties. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
org.osgi.framework.ServiceReference |
getReference()
|
int |
hashCode()
|
void |
setProperties(Dictionary props)
|
void |
setReference(org.osgi.framework.ServiceReference reference)
Sets the service reference associated with this registration. |
void |
unregister()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockServiceRegistration()
MockServiceRegistration instance using
defaults.
public MockServiceRegistration(Dictionary props)
MockServiceRegistration instance with the
given properties.
props - registration properties
public MockServiceRegistration(String[] clazz,
Dictionary props)
MockServiceRegistration instance using
the given class names and properties.
clazz - props - | Method Detail |
|---|
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(Dictionary props)
setProperties in interface org.osgi.framework.ServiceRegistrationpublic void unregister()
unregister in interface org.osgi.framework.ServiceRegistrationpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||