Class MethodResult

java.lang.Object
org.apache.felix.scr.impl.inject.MethodResult

public class MethodResult extends Object
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 Details

    • 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 Map<String,Object> result
      The actual result from the method, which may be null.
    • hasResult

      private final boolean hasResult
  • Constructor Details

    • MethodResult

      public MethodResult(boolean hasResult, Map<String,Object> result)
  • Method Details

    • hasResult

      public boolean hasResult()
    • getResult

      public Map<String,Object> getResult()