Author: [log in to unmask]
Date: Tue Sep 1 18:58:39 2015
New Revision: 3485
Log:
Inherit from LoopListener too.
Modified:
java/trunk/record-util/src/main/java/org/hps/record/evio/EvioLoopAdapter.java
Modified: java/trunk/record-util/src/main/java/org/hps/record/evio/EvioLoopAdapter.java
=============================================================================
--- java/trunk/record-util/src/main/java/org/hps/record/evio/EvioLoopAdapter.java (original)
+++ java/trunk/record-util/src/main/java/org/hps/record/evio/EvioLoopAdapter.java Tue Sep 1 18:58:39 2015
@@ -7,6 +7,7 @@
import org.freehep.record.loop.AbstractLoopListener;
import org.freehep.record.loop.LoopEvent;
+import org.freehep.record.loop.LoopListener;
import org.freehep.record.loop.RecordEvent;
import org.freehep.record.loop.RecordListener;
import org.jlab.coda.jevio.EvioEvent;
@@ -18,7 +19,7 @@
*
* @author Jeremy McCormick, SLAC
*/
-public final class EvioLoopAdapter extends AbstractLoopListener implements RecordListener {
+public final class EvioLoopAdapter extends AbstractLoopListener implements RecordListener, LoopListener {
/**
* Setup class logger.
@@ -52,7 +53,7 @@
*/
@Override
protected void finish(final LoopEvent event) {
- LOGGER.info("executing finish hook");
+ LOGGER.info("finish");
for (final EvioEventProcessor processor : processors) {
processor.endJob();
}
@@ -88,7 +89,7 @@
*/
@Override
protected void start(final LoopEvent event) {
- LOGGER.info("executing start hook");
+ LOGGER.info("start");
for (final EvioEventProcessor processor : processors) {
processor.startJob();
}
|