KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > event > Filter


1 /*
2  * Copyright 1999-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.event;
17
18 import java.io.Serializable JavaDoc;
19
20 /**
21  * A Filter allows subscribers to specify which events
22  * they should be informed of.
23  * It is Serializable to allow events to be published and received
24  * in a distributed architecture.
25  *
26  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
27  * @author <a HREF="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a>
28  * @author Mauro Talevi
29  * @deprecated Use the receiver instead.
30  *
31  * @version CVS $Id: Filter.java 219049 2005-07-14 15:11:52Z cziegeler $
32  */

33 public interface Filter extends Serializable JavaDoc {
34
35     /**
36      * Filters event, discarding those not of interest to the subscriber.
37      *
38      * @param event the <tt>Event</tt>
39      * @return boolean <code>true</code> if Event passes filter
40      */

41     boolean filter( Event event );
42
43 }
44
Popular Tags