01: /*
02: * Copyright 2004,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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:
17: package org.apache.bsf.util.event;
18:
19: /**
20: * <em>EventProcessor</em> is the interface that event adapters use to
21: * delegate events they received to be delivered to the appropriate target.
22: * They can simply deliver the event using processEvent or, if the event
23: * can be excepted to, via processExceptionableEvent (in which case the
24: * adapter is expected to forward on an exception to the source bean).
25: *
26: * @author Sanjiva Weerawarana
27: * @author Matthew J. Duftler
28: * @see EventAdapter
29: */
30: public interface EventProcessor {
31: public void processEvent(String filter, Object[] eventInfo);
32:
33: public void processExceptionableEvent(String filter,
34: Object[] eventInfo) throws Exception;
35: }
|