|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.osgi.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)
|
ServiceReference |
getReference()
|
int |
hashCode()
|
void |
setProperties(Dictionary props)
|
void |
setReference(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 propertiespublic MockServiceRegistration(String[] clazz, Dictionary props)
MockServiceRegistration
instance using
the given class names and properties.
clazz
- props
- Method Detail |
---|
public ServiceReference getReference()
getReference
in interface ServiceRegistration
public void setReference(ServiceReference reference)
reference
- service referencepublic void setProperties(Dictionary props)
setProperties
in interface ServiceRegistration
public void unregister()
unregister
in interface ServiceRegistration
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |