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>EventAdapterImpl</em> is a default implementation of the EventAdapter
21: * interface that specific event adapters may choose to subclass from
22: * instead of implementing the interface themselves. Saves 5 lines of code
23: * mebbe.
24: *
25: * @author Sanjiva Weerawarana
26: * @author Matthew J. Duftler
27: * @see EventAdapter
28: */
29: public class EventAdapterImpl implements EventAdapter {
30: protected EventProcessor eventProcessor;
31:
32: public void setEventProcessor(EventProcessor eventProcessor) {
33: this.eventProcessor = eventProcessor;
34: }
35: }
|