org.springframework.osgi.mock
Class MockServiceRegistration
java.lang.Object
org.springframework.osgi.mock.MockServiceRegistration
- All Implemented Interfaces:
- ServiceRegistration
public class MockServiceRegistration
- extends Object
- implements ServiceRegistration
ServiceRegistration mock.
The mock allows the service properties modification (through
setProperties(Dictionary)
) as long as the underlying reference is
of type MockServiceReference
.
- Author:
- Costin Leau
MockServiceRegistration
public MockServiceRegistration()
MockServiceRegistration
public MockServiceRegistration(Dictionary props)
MockServiceRegistration
public MockServiceRegistration(String[] clazz,
Dictionary props)
getReference
public ServiceReference getReference()
- Specified by:
getReference
in interface ServiceRegistration
setReference
public void setReference(ServiceReference reference)
setProperties
public void setProperties(Dictionary props)
- Specified by:
setProperties
in interface ServiceRegistration
unregister
public void unregister()
- Specified by:
unregister
in interface ServiceRegistration
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2006-2008 Spring Framework. All Rights Reserved.