KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > gulden > util > javasource > LogPerformer


1 /*
2  * Project: BeautyJ - Customizable Java Source Code Transformer
3  * Class: de.gulden.util.javasource.LogPerformer
4  * Version: 1.1
5  *
6  * Date: 2004-09-29
7  *
8  * Note: Contains auto-generated Javadoc comments created by BeautyJ.
9  *
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 JavaDoc text) {
37         log(text, null);
38     }
39     public void log(String JavaDoc text, Object JavaDoc source) {
40         System.out.println( ( (source != null) ? (source.getClass().getName()+": ") : "") + text );
41     }
42 };
43
44
45     // ------------------------------------------------------------------------
46
// --- methods ---
47
// ------------------------------------------------------------------------
48

49     public void log(String JavaDoc text);
50
51     public void log(String JavaDoc text, Object JavaDoc source);
52
53 } // end LogPerformer
54
Popular Tags