KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > smtphandler > TriggeringRecordEvaluator


1 /*
2  * ============================================================================
3  * The Apache Software License, Version 1.1
4  * ============================================================================
5  *
6  * Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without modifica-
9  * tion, are permitted provided that the following conditions are met:
10  * 1. Redistributions of source code must retain the above copyright notice,
11  * this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  * 3. The end-user documentation included with the redistribution, if any,
16  * must include the following acknowledgment: "This product includes software
17  * developed by the Apache Software Foundation (http://www.apache.org/)."
18  * Alternately, this acknowledgment may appear in the software itself, if and
19  * wherever such third-party acknowledgments normally appear.
20  * 4. The names "log4j" and "Apache Software Foundation" must not be used to
21  * endorse or promote products derived from this software without prior written
22  * permission. For written permission, please contact apache@apache.org.
23  * 5. Products derived from this software may not be called "Apache", nor may
24  * "Apache" appear in their name, without prior written permission of the
25  * Apache Software Foundation.
26  *
27  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
28  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
29  * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30  * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
32  * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
33  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
34  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37  *
38  * This software consists of voluntary contributions made by many individuals
39  * on behalf of the Apache Software Foundation. For more information on the
40  * Apache Software Foundation, please see <http://www.apache.org/> .
41  *
42  */

43
44 package smtphandler;
45
46 import java.util.logging.LogRecord JavaDoc;
47
48 /**
49  *
50  * Implementations of this interface allow certain handlers to decide when to
51  * perform a handler specific action.
52  *
53  * @author Ceki G&uuml;lc&uuml; (author of log4j's TriggeringEventEvaluator)
54  * @author Sean C. Sullivan
55  *
56  */

57 // note: this interface is derived from Log4j's TriggeringEventEvaluator interface
58
public interface TriggeringRecordEvaluator
59 {
60     /**
61      * Is this the triggering record?
62      */

63     public boolean isTriggeringRecord(LogRecord JavaDoc record);
64 }
65
Popular Tags