Class MethodResult
java.lang.Object
org.apache.felix.scr.impl.inject.MethodResult
The
MethodResult conveys the return value of one of the
activate, modify, and deactivate methods.
Note that the method returning null or being defined as
void is not the same thing. If the method returns
null an instance of this class is returned whose
getResult() method returns null. If the method is
defined as void the special instance VOID is returned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final MethodResultPredefined instance indicating to reactivate the component.The actual result from the method, which may benull.static final MethodResultPredefined instance indicating a successful call to a void method. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VOID
Predefined instance indicating a successful call to a void method. -
REACTIVATE
Predefined instance indicating to reactivate the component. -
result
-
hasResult
private final boolean hasResult
-
-
Constructor Details
-
MethodResult
-
-
Method Details
-
hasResult
public boolean hasResult() -
getResult
-