Class Action<O,​R>

    • Field Detail

      • partial

        protected final boolean partial
        Flag, whether action is part of more complex action. This is most often used to determine whether and how to print information to user (or skip some, e.g. next steps messages).
      • log

        protected Log log
      • options

        protected O options
    • Constructor Detail

      • Action

        public Action()
      • Action

        public Action​(boolean partial)
    • Method Detail

      • destroy

        public void destroy()
      • getLogTarget

        public LogTarget getLogTarget()
        Returns:
        target where the log should be printed. In case action result is printed to the standard output, log messages should go to the standard error no to mix the output. Otherwise, log messages should go to the standard output.
      • handleResultOnFinish

        protected void handleResultOnFinish​(R consumerResult,
                                            OperationStatus operation,
                                            String finishMessage)
      • getApplicationContextLevel

        @NotNull
        public @NotNull NinjaApplicationContextLevel getApplicationContextLevel​(List<Object> allOptions)
        Parameters:
        allOptions -
        Returns:
        Level of application context initialization required for this action.
      • getOperationName

        public abstract String getOperationName()