|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ConsoleListener.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 | /* $Id: ConsoleListener.java,v 1.1 2004/03/17 21:17:13 johndavidtaylor Exp $ | |
| 2 | * Created on Feb 20, 2004 by John Taylor jdt@roe.ac.uk . | |
| 3 | */ | |
| 4 | ||
| 5 | package org.abraracourcix.alipes.listeners.logging; | |
| 6 | ||
| 7 | import java.util.Date; | |
| 8 | ||
| 9 | import org.abraracourcix.alipes.common.Event; | |
| 10 | import org.abraracourcix.alipes.listeners.AbstractListener; | |
| 11 | ||
| 12 | /** | |
| 13 | * | |
| 14 | * Simply sends any events to the std output | |
| 15 | * @author jdt | |
| 16 | */ | |
| 17 | public final class ConsoleListener extends AbstractListener { | |
| 18 | /** | |
| 19 | * Standard listener method | |
| 20 | * @param event see superclass | |
| 21 | * @param resource see superclass | |
| 22 | * @see org.abraracourcix.alipes.listeners.Listener#eventOccurred(org.abraracourcix.alipes.common.Event, java.lang.Object) | |
| 23 | */ | |
| 24 | 0 | public void eventOccurred(final Event event, final Object resource) { |
| 25 | 0 | System.out.println(new Date()+" Resource: "+resource+" | "+event); |
| 26 | } | |
| 27 | } | |
| 28 | ||
| 29 | ||
| 30 | /* | |
| 31 | *$Log: ConsoleListener.java,v $ | |
| 32 | *Revision 1.1 2004/03/17 21:17:13 johndavidtaylor | |
| 33 | *Copied across from incubation in beanpeeler | |
| 34 | * | |
| 35 | *Revision 1.5 2004/03/14 18:49:15 johndavidtaylor | |
| 36 | *corrected comments | |
| 37 | * | |
| 38 | *Revision 1.4 2004/03/11 15:46:35 johndavidtaylor | |
| 39 | *Applied coding standards | |
| 40 | * | |
| 41 | *Revision 1.3 2004/03/11 09:49:24 johndavidtaylor | |
| 42 | *Loads of updates | |
| 43 | * | |
| 44 | *Revision 1.2 2004/03/08 20:16:46 johndavidtaylor | |
| 45 | *refactored to new package name | |
| 46 | * | |
| 47 | *Revision 1.1 2004/03/08 19:58:26 johndavidtaylor | |
| 48 | *Initial commit -transfer from previous repository | |
| 49 | * | |
| 50 | *Revision 1.1 2004/03/02 23:04:37 jdt | |
| 51 | *new | |
| 52 | * | |
| 53 | */ |
|
||||||||||