Interface CbServiceComponentRef<T,S>

All Superinterfaces:
Serializable, SerializableLambda
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 CbServiceComponentRef<T,S> extends SerializableLambda
Represents a callback(Service, Component, ServiceReference) that is invoked on a Component implementation class. The type of the class on which the callback is invoked on is represented by the T generic parameter.
Author:
Felix Project Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T instance, S service, org.apache.felix.dm.Component c, org.osgi.framework.ServiceReference<S> ref)
    Handles the given arguments.
     
  • Method Details

    • accept

      void accept(T instance, S service, org.apache.felix.dm.Component c, org.osgi.framework.ServiceReference<S> ref)
      Handles the given arguments.
      Parameters:
      instance - the Component implementation instance on which the callback is invoked on.
      service - the first callback parameter
      c - the second callback parameter
      ref - the third callback parameter
    • andThen

      default CbServiceComponentRef<T,S> andThen(CbServiceComponentRef<T,S> after)