Class InvokeAction

  • All Implemented Interfaces:
    Executable
    Direct Known Subclasses:
    AdviceAction

    public class InvokeAction
    extends java.lang.Object
    implements Executable
    InvokeAction that invokes a method of the bean instance.

    Created: 2008. 03. 22 PM 5:50:35

    • Constructor Detail

      • InvokeAction

        public InvokeAction​(InvokeActionRule invokeActionRule)
        Instantiates a new InvokeAction.
        Parameters:
        invokeActionRule - the invoke action rule
    • Method Detail

      • execute

        public java.lang.Object execute​(Activity activity)
                                 throws java.lang.Exception
        Description copied from interface: Executable
        Execute this action.
        Specified by:
        execute in interface Executable
        Parameters:
        activity - the activity
        Returns:
        the result of action execution
        Throws:
        java.lang.Exception - if the action fails to execute
      • execute

        protected java.lang.Object execute​(Activity activity,
                                           java.lang.Object bean)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getInvokeActionRule

        public InvokeActionRule getInvokeActionRule()
        Returns the invoke action rule.
        Returns:
        the invoke action rule
      • getActionId

        public java.lang.String getActionId()
        Description copied from interface: Executable
        Gets the action id.
        Specified by:
        getActionId in interface Executable
        Returns:
        the action id
      • isHidden

        public boolean isHidden()
        Description copied from interface: Executable
        Returns whether this action is hidden.
        Specified by:
        isHidden in interface Executable
        Returns:
        true, if is hidden action
      • getActionRule

        public <T> T getActionRule()
        Description copied from interface: Executable
        Gets the action rule.
        Specified by:
        getActionRule in interface Executable
        Type Parameters:
        T - the generic type
        Returns:
        the action rule
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object