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.Object
TheMethodResult
conveys the return value of one of the activate, modify, and deactivate methods.Note that the method returning
null
or being defined asvoid
is not the same thing. If the method returnsnull
an instance of this class is returned whosegetResult()
method returnsnull
. If the method is defined asvoid
the special instanceVOID
is returned.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasResult
static MethodResult
REACTIVATE
Predefined instance indicating to reactivate the component.private java.util.Map<java.lang.String,java.lang.Object>
result
The actual result from the method, which may benull
.static MethodResult
VOID
Predefined 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()
boolean
hasResult()
-
-
-
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
-
-