Interface ServiceAndServiceReferencePair<T>

Type Parameters:
T - The type of the Service

public interface ServiceAndServiceReferencePair<T>
A simple interface to associate a DS instance of a Service, with the ServiceReference that created it.
Handy for when you want to query properties on the ServiceReference for a given Service.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the Service instance for this pair.
    org.osgi.framework.ServiceReference<T>
    Get the ServiceReference instance for this pair.
  • Method Details

    • getService

      T getService()
      Get the Service instance for this pair.
      Returns:
    • getServiceReference

      org.osgi.framework.ServiceReference<T> getServiceReference()
      Get the ServiceReference instance for this pair.
      Returns: