Class MethodExceptionEventHandler.MethodExceptionExecutor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class claz  
      private Context context  
      private java.lang.Exception e  
      private boolean executed  
      private java.lang.String method  
      private java.lang.Object result  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodExceptionExecutor​(Context context, java.lang.Class claz, java.lang.String method, java.lang.Exception e)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(EventHandler handler)
      Call the method methodException()
      java.lang.Object getReturnValue()
      Get return value at end of all the iterations
      boolean isDone()
      Only run the first MethodExceptionEventHandler
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • claz

        private java.lang.Class claz
      • method

        private java.lang.String method
      • e

        private java.lang.Exception e
      • result

        private java.lang.Object result
      • executed

        private boolean executed
    • Constructor Detail

      • MethodExceptionExecutor

        MethodExceptionExecutor​(Context context,
                                java.lang.Class claz,
                                java.lang.String method,
                                java.lang.Exception e)
    • Method Detail

      • execute

        public void execute​(EventHandler handler)
                     throws java.lang.Exception
        Call the method methodException()
        Specified by:
        execute in interface EventHandlerMethodExecutor
        Parameters:
        handler - call the appropriate method on this handler
        Throws:
        java.lang.Exception - generic exception thrown by methodException event handler method call
      • isDone

        public boolean isDone()
        Only run the first MethodExceptionEventHandler
        Specified by:
        isDone in interface EventHandlerMethodExecutor
        Returns:
        true after this is executed once.