Class 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 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.
    • Constructor Detail

      • MethodResult

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

      • hasResult

        public boolean hasResult()