source: trunk/JavaHelperLib/src/de/ugoe/cs/util/console/listener/IOutputListener.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: 566 bytes
Line 
1package de.ugoe.cs.util.console.listener;
2
3import de.ugoe.cs.util.console.Console;
4
5/**
6 * <p>
7 * Interface for listeners observing the output stream of the {@link Console}.
8 * </p>
9 *
10 * @author Steffen Herbold
11 * @version 1.0
12 */
13public interface IOutputListener {
14
15        /**
16         * <p>
17         * Receives messages send to the output stream of the {@link Console}.
18         * </p>
19         *
20         * TODO: rename method to outputMsg()
21         *
22         * @param newMessage
23         *            message that was send to the console.
24         */
25        public void updateText(String newMessage);
26
27}
Note: See TracBrowser for help on using the repository browser.