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>EventAdapter</em> is the interface that all event adapters must
21: * implement in order to work with the automatic event adapter generation
22: * model. This interface requires that the adapter implement a method
23: * that allows setting the event processor delegated to process the event
24: * after the adapter has received the event from the event source. The
25: * task of any event adapter is to receive the event and then delegate it
26: * to the event processor assigned to it, using either
27: * eventProcessor.processEvent or eventProcessor.processExceptionableEvent.
28: *
29: * @author Sanjiva Weerawarana
30: * @author Matthew J. Duftler
31: * @see EventProcessor
32: */
33: public interface EventAdapter {
34: public void setEventProcessor(EventProcessor eventProcessor);
35: }
|