[Javamatch-cvs] javamatch/src/net/sourceforge/javamatch/engine MatchListener.java,NONE,1.1
Status: Pre-Alpha
Brought to you by:
iterson
From: Walter v. I. <it...@us...> - 2004-09-07 09:42:23
|
Update of /cvsroot/javamatch/javamatch/src/net/sourceforge/javamatch/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17129 Added Files: MatchListener.java Log Message: Add listener mechanism for query started / finished callbacks --- NEW FILE: MatchListener.java --- /* JavaMatch: Matching engine for Java runtime data structures * Copyright (C) 2004 Walter van Iterson * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sourceforge.javamatch.engine; import net.sourceforge.javamatch.query.*; /** * Interface MatchListener is implemented by classes that want to be notified * of events during the matching process. A MatchListener should be registered * with the @link MatchEngine, to receive its notifications */ public interface MatchListener { /** * Called before the match engine starts executing a match query * @param query the query that is about to be executed */ public void matchQueryStarted(MatchQuery query); /** * Called after a match query has completed, just before returning the query * execution results * @param query the query that has been executed * @param result the result of the matching process */ public void matchQueryFinished(MatchQuery query, MatchResult result); } |