1 /*
2 Copyright 2008 Ramon Servadei
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 fulmine.event.listener;
17
18 import java.util.Map;
19
20 import fulmine.event.IEvent;
21 import fulmine.event.IEventManager;
22 import fulmine.event.system.ISystemEventListener;
23 import fulmine.util.log.AsyncLog;
24
25 /**
26 * An extension of the {@link MultiEventListener} that handles system events.
27 * The aggregate listener instances may or may not be
28 * {@link ISystemEventListener} types.
29 *
30 * @author Ramon Servadei
31 */
32 public class MultiSystemEventListener extends MultiEventListener implements
33 ISystemEventListener
34 {
35 private final static AsyncLog LOG =
36 new AsyncLog(MultiSystemEventListener.class);
37
38 public MultiSystemEventListener(String name, IEventManager context,
39 Map<Class<? extends IEvent>, IEventListener> listeners)
40 {
41 super(name, context, listeners);
42 }
43
44 @Override
45 protected AsyncLog getLog()
46 {
47 return LOG;
48 }
49
50 }