com.ibm.wsspi.kernel.service.utils

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

      Methods 
      Modifier and Type Method and Description
      T getService()
      Get the Service instance for this pair.
      org.osgi.framework.ServiceReference<T> getServiceReference()
      Get the ServiceReference instance for this pair.
    • Method Detail

      • 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: