root/kraken-filter/src/main/java/org/krakenapps/filter/FilterEventListener.java @ 306

Revision 306, 2.0 KB (checked in by xeraph, 15 months ago)

kraken-filter 1.0.0 release.
- refactored a lot of codes in consistent way.
- javadoc documentation added.

Line 
1/*
2 * Copyright 2009 NCHOVY
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 */
16package org.krakenapps.filter;
17
18/**
19 * The listener interface for receiving filter events.
20 *
21 * @author xeraph
22 * @since 1.0.0
23 */
24public interface FilterEventListener {
25        /**
26         * Invoked when a filter is loaded.
27         */
28        void onFilterLoaded(String filterId);
29
30        /**
31         * Invoked when a filter is unloading.
32         */
33        void onFilterUnloading(String filterId);
34
35        /**
36         * Invoked when filters are bound.
37         *
38         * @param fromFilterId
39         *            the source filter id
40         * @param toFilterId
41         *            the destination filter id
42         */
43        void onFilterBound(String fromFilterId, String toFilterId);
44
45        /**
46         * Invoked when filters are unbounding.
47         *
48         * @param fromFilterId
49         *            the source filter id
50         * @param toFilterId
51         *            the destination filter id
52         */
53        void onFilterUnbinding(String fromFilterId, String toFilterId);
54
55        /**
56         * Invoked when a property is set.
57         *
58         * @param filterId
59         *            the target filter id
60         * @param name
61         *            the name of the property
62         * @param value
63         *            the value of the property
64         */
65        void onFilterSet(String filterId, String name, Object value);
66
67        /**
68         * Invoked when a property is removed.
69         *
70         * @param filterId
71         *            the target filter id
72         * @param name
73         *            the name of the property
74         */
75        void onFilterUnset(String filterId, String name);
76}
Note: See TracBrowser for help on using the browser.