Class LoggingAction

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action

    public abstract class LoggingAction
    extends Object
    implements org.apache.karaf.shell.api.action.Action
    Base class to implement Karaf CLI command actions which correctly log failures. Recommend because Karaf sometimes "swallows" (hides) exceptions (INFRAUTILS-55).
    Author:
    Michael Vorburger.ch
    • Constructor Detail

      • LoggingAction

        public LoggingAction()
    • Method Detail

      • execute

        public final @Nullable Object execute()
        Specified by:
        execute in interface org.apache.karaf.shell.api.action.Action