Class AdviceAction

  • All Implemented Interfaces:
    Executable

    public class AdviceAction
    extends InvokeAction
    AdviceAction that invokes a method for Aspect Advice.

    Created: 2019. 07. 18

    • Constructor Detail

      • AdviceAction

        public AdviceAction​(InvokeActionRule invokeActionRule,
                            AspectAdviceRule aspectAdviceRule)
        Instantiates a new AdviceAction.
        Parameters:
        invokeActionRule - the invoke action rule
        aspectAdviceRule - the aspect advice rule
    • Method Detail

      • getAspectAdviceRule

        public AspectAdviceRule getAspectAdviceRule()
        Gets the aspect advice rule.
        Returns:
        the aspect advice rule
      • 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
        Overrides:
        execute in class InvokeAction
        Parameters:
        activity - the activity
        Returns:
        the result of action execution
        Throws:
        java.lang.Exception - if the action fails to execute