Class MethodAction<T>

  • All Implemented Interfaces:
    IAction<T>

    public class MethodAction<T>
    extends java.lang.Object
    implements IAction<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Method method
      The method.
      protected java.lang.Object object
      The object.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodAction​(java.lang.Object object, java.lang.reflect.Method method)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<T> execute​(IEvent event, IRule rule, java.lang.Object context, java.lang.Object condresult)
      Execute the action.
      • Methods inherited from class java.lang.Object

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

      • object

        protected java.lang.Object object
        The object.
      • method

        protected java.lang.reflect.Method method
        The method.
    • Constructor Detail

      • MethodAction

        public MethodAction​(java.lang.Object object,
                            java.lang.reflect.Method method)
    • Method Detail

      • execute

        public IFuture<T> execute​(IEvent event,
                                  IRule rule,
                                  java.lang.Object context,
                                  java.lang.Object condresult)
        Description copied from interface: IAction
        Execute the action.
        Specified by:
        execute in interface IAction<T>
        Parameters:
        event - The event.
        rule - The rule this action belongs to.
        context - The user context.
        condresult - The condition result.