01: /*
02: * Project: BeautyJ - Customizable Java Source Code Transformer
03: * Class: de.gulden.util.javasource.LogPerformer
04: * Version: 1.1
05: *
06: * Date: 2004-09-29
07: *
08: * Note: Contains auto-generated Javadoc comments created by BeautyJ.
09: *
10: * This is licensed under the GNU General Public License (GPL)
11: * and comes with NO WARRANTY. See file license.txt for details.
12: *
13: * Author: Jens Gulden
14: * Email: beautyj@jensgulden.de
15: */
16:
17: package de.gulden.util.javasource;
18:
19: /**
20: * Copied from de.gulden.framework.amoda.model.interaction.LogPerformer.
21: * (As its own interface to keep de.gulden.util.javasourceindependent from AMODA. )
22: *
23: * @author Jens Gulden
24: * @version 1.1
25: */
26: public interface LogPerformer {
27:
28: // ------------------------------------------------------------------------
29: // --- static field ---
30: // ------------------------------------------------------------------------
31:
32: /**
33: * The d e f a u l t.
34: */
35: public static LogPerformer DEFAULT = new LogPerformer() {
36: public void log(String text) {
37: log(text, null);
38: }
39:
40: public void log(String text, Object source) {
41: System.out.println(((source != null) ? (source.getClass()
42: .getName() + ": ") : "")
43: + text);
44: }
45: };
46:
47: // ------------------------------------------------------------------------
48: // --- methods ---
49: // ------------------------------------------------------------------------
50:
51: public void log(String text);
52:
53: public void log(String text, Object source);
54:
55: } // end LogPerformer
|