Interface CbRefServiceRefServiceComponent<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 CbRefServiceRefServiceComponent<T,S>
extends SerializableLambda
Represents a callback(ServiceReference, Service, ServiceReference, Service, Component) 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 TypeMethodDescriptionvoidaccept(T instance, org.osgi.framework.ServiceReference<S> oldRef, S old, org.osgi.framework.ServiceReference<S> replaceRef, S replace, org.apache.felix.dm.Component c) Handles the given arguments.default CbRefServiceRefServiceComponent<T, S> andThen(CbRefServiceRefServiceComponent<? super T, S> after)
-
Method Details
-
accept
void accept(T instance, org.osgi.framework.ServiceReference<S> oldRef, S old, org.osgi.framework.ServiceReference<S> replaceRef, S replace, org.apache.felix.dm.Component c) Handles the given arguments.- Parameters:
instance- the Component implementation instance on which the callback is invoked on.oldRef- first callback argold- second callback argreplaceRef- third callback argreplace- fourth callback argc- fifth callback arg
-
andThen
default CbRefServiceRefServiceComponent<T,S> andThen(CbRefServiceRefServiceComponent<? super T, S> after)
-