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 Modifier and Type Field Description static ReferenceMethod
NOPReferenceMethod
A NOP implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S,T>
booleangetServiceObject(BindParameters parameters, org.osgi.framework.BundleContext context)
<S,T>
MethodResultinvoke(Object componentInstance, BindParameters parameters, MethodResult methodCallFailureResult)
Invoke the reference method and bind/unbind/update the reference.
-
-
-
Field Detail
-
NOPReferenceMethod
static final ReferenceMethod NOPReferenceMethod
A NOP implementation.
-
-
Method Detail
-
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)
-
-