Package org.apache.felix.scr.impl.inject
Class MethodResult
- java.lang.Object
-
- org.apache.felix.scr.impl.inject.MethodResult
-
public class MethodResult extends java.lang.ObjectTheMethodResultconveys the return value of one of the activate, modify, and deactivate methods.Note that the method returning
nullor being defined asvoidis not the same thing. If the method returnsnullan instance of this class is returned whosegetResult()method returnsnull. If the method is defined asvoidthe special instanceVOIDis returned.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasResultstatic MethodResultREACTIVATEPredefined instance indicating to reactivate the component.private java.util.Map<java.lang.String,java.lang.Object>resultThe actual result from the method, which may benull.static MethodResultVOIDPredefined instance indicating a successful call to a void method.
-
Constructor Summary
Constructors Constructor Description MethodResult(boolean hasResult, java.util.Map<java.lang.String,java.lang.Object> result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getResult()booleanhasResult()
-
-
-
Field Detail
-
VOID
public static final MethodResult VOID
Predefined instance indicating a successful call to a void method.
-
REACTIVATE
public static final MethodResult REACTIVATE
Predefined instance indicating to reactivate the component.
-
result
private final java.util.Map<java.lang.String,java.lang.Object> result
The actual result from the method, which may benull.
-
hasResult
private final boolean hasResult
-
-