Package org.nuxeo.osgi.services
Class ServiceReferenceImpl
- java.lang.Object
-
- org.nuxeo.osgi.services.ServiceReferenceImpl
-
- All Implemented Interfaces:
Comparable
,org.osgi.framework.ServiceReference
public class ServiceReferenceImpl extends Object implements org.osgi.framework.ServiceReference
Dummy service reference. servicefactory not supported.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description ServiceReferenceImpl(org.osgi.framework.Bundle bundle, Object service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object reference)
org.osgi.framework.Bundle
getBundle()
Object
getProperty(String key)
String[]
getPropertyKeys()
Object
getService()
org.osgi.framework.Bundle[]
getUsingBundles()
boolean
isAssignableTo(org.osgi.framework.Bundle bundle, String className)
void
setProperties(Dictionary<String,?> dict)
-
-
-
Constructor Detail
-
ServiceReferenceImpl
public ServiceReferenceImpl(org.osgi.framework.Bundle bundle, Object service)
-
-
Method Detail
-
getProperty
public Object getProperty(String key)
- Specified by:
getProperty
in interfaceorg.osgi.framework.ServiceReference
-
getPropertyKeys
public String[] getPropertyKeys()
- Specified by:
getPropertyKeys
in interfaceorg.osgi.framework.ServiceReference
-
getBundle
public org.osgi.framework.Bundle getBundle()
- Specified by:
getBundle
in interfaceorg.osgi.framework.ServiceReference
-
getUsingBundles
public org.osgi.framework.Bundle[] getUsingBundles()
- Specified by:
getUsingBundles
in interfaceorg.osgi.framework.ServiceReference
-
isAssignableTo
public boolean isAssignableTo(org.osgi.framework.Bundle bundle, String className)
- Specified by:
isAssignableTo
in interfaceorg.osgi.framework.ServiceReference
-
compareTo
public int compareTo(Object reference)
- Specified by:
compareTo
in interfaceComparable
- Specified by:
compareTo
in interfaceorg.osgi.framework.ServiceReference
-
getService
public Object getService()
-
setProperties
public void setProperties(Dictionary<String,?> dict)
-
-