Package org.apache.felix.scr.impl.inject
Interface ReferenceMethod
-
- All Known Implementing Classes:
BindMethod,DuplexReferenceMethods.DuplexReferenceMethod,FieldHandler.ReferenceMethodImpl,UnbindMethod,UpdatedMethod
public interface ReferenceMethodComponent method to be invoked on service (un)binding or updating
-
-
Field Summary
Fields Modifier and Type Field Description static ReferenceMethodNOPReferenceMethodA 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(java.lang.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(java.lang.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)
-
-