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
  • Field Details

    • bundle

      protected org.osgi.framework.Bundle bundle
    • service

      protected Object service
    • factory

      protected org.osgi.framework.ServiceFactory factory
    • props

      protected Map<String,Object> props
  • Constructor Details

    • ServiceReferenceImpl

      public ServiceReferenceImpl(org.osgi.framework.Bundle bundle, Object service)
  • Method Details

    • getProperty

      public Object getProperty(String key)
      Specified by:
      getProperty in interface org.osgi.framework.ServiceReference
    • getPropertyKeys

      public String[] getPropertyKeys()
      Specified by:
      getPropertyKeys in interface org.osgi.framework.ServiceReference
    • getBundle

      public org.osgi.framework.Bundle getBundle()
      Specified by:
      getBundle in interface org.osgi.framework.ServiceReference
    • getUsingBundles

      public org.osgi.framework.Bundle[] getUsingBundles()
      Specified by:
      getUsingBundles in interface org.osgi.framework.ServiceReference
    • isAssignableTo

      public boolean isAssignableTo(org.osgi.framework.Bundle bundle, String className)
      Specified by:
      isAssignableTo in interface org.osgi.framework.ServiceReference
    • compareTo

      public int compareTo(Object reference)
      Specified by:
      compareTo in interface Comparable
      Specified by:
      compareTo in interface org.osgi.framework.ServiceReference
    • getService

      public Object getService()
    • setProperties

      public void setProperties(Dictionary<String,?> dict)