source: trunk/JavaHelperLib/src/de/ugoe/cs/util/console/listener/ICommandListener.java @ 199

Last change on this file since 199 was 199, checked in by sherbold, 13 years ago

Major change to the Console provided by this library. The interface de.ugoe.cs.console.ConsoleObserver? is deprecated and split into the five interface IOutputListener, IErrorListener, ITraceListener, IExceptionListener, and ICommandListener.

The rational for this change is to provide the possibility to listen to only parts of what is send to the console to provide better capabilities for target-oriented handling of the different streams, e.g., for exception logging.

  • Property svn:mime-type set to text/plain
File size: 543 bytes
Line 
1package de.ugoe.cs.util.console.listener;
2
3import de.ugoe.cs.util.console.CommandExecuter;
4
5/**
6 * <p>
7 * Interface for listeners observing the commands executed by the
8 * {@link CommandExecuter}.
9 * </p>
10 *
11 * @author Steffen Herbold
12 * @version 1.0
13 */
14public interface ICommandListener {
15        /**
16         * <p>
17         * Receives the command strings of all executed by the
18         * {@link CommandExecuter}.
19         * </p>
20         *
21         * @param command
22         *            string of the command.
23         */
24        public void commandNotification(String command);
25}
Note: See TracBrowser for help on using the repository browser.