Interface InstanceCbServiceRef<S>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InstanceCbServiceRef<S>
Represents a callback(Service, ServiceReference) on an Object instance.

The type of the service passed in argument to the callback is defined by the "S" generic parameter.

Author:
Felix Project Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(S service, org.osgi.framework.ServiceReference<S> ref)
    Handles the given arguments.
     
  • Method Details

    • accept

      void accept(S service, org.osgi.framework.ServiceReference<S> ref)
      Handles the given arguments.
      Parameters:
      service - a Service
      ref - a Service Reference
    • andThen

      default InstanceCbServiceRef<S> andThen(InstanceCbServiceRef<S> after)