Package org.apache.felix.scr.impl.inject
Interface ReferenceMethod
- All Known Implementing Classes:
BindMethod
,FieldHandler.ReferenceMethodImpl
,UnbindMethod
,UpdatedMethod
public interface ReferenceMethod
Component method to be invoked on service (un)binding or updating
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<S,
T> boolean getServiceObject
(BindParameters parameters, org.osgi.framework.BundleContext context) <S,
T> MethodResult invoke
(Object componentInstance, BindParameters parameters, MethodResult methodCallFailureResult) Invoke the reference method and bind/unbind/update the reference.
-
Field Details
-
NOPReferenceMethod
A NOP implementation.
-
-
Method Details
-
invoke
<S,T> MethodResult invoke(Object componentInstance, BindParameters parameters, MethodResult methodCallFailureResult) Invoke the reference method and bind/unbind/update the reference.- Parameters:
componentInstance
- The component instanceparameters
- The parameters for the reference.methodCallFailureResult
- Return result for failurelogger
- Logger- Returns:
- The method result
-
getServiceObject
<S,T> boolean getServiceObject(BindParameters parameters, org.osgi.framework.BundleContext context)
-