EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011)
[all classes][com.hammurapi.eventbus]

COVERAGE SUMMARY FOR SOURCE FILE [EventHandlerFilter.java]

nameclass, %method, %block, %line, %
EventHandlerFilter.java0%   (0/1)0%   (0/3)0%   (0/29)0%   (0/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EventHandlerFilter0%   (0/1)0%   (0/3)0%   (0/29)0%   (0/13)
EventHandlerFilter (EventHandler): void 0%   (0/1)0%   (0/20)0%   (0/10)
getMaster (): EventHandler 0%   (0/1)0%   (0/3)0%   (0/1)
post (EventDispatchContext, Object []): void 0%   (0/1)0%   (0/6)0%   (0/2)

1package com.hammurapi.eventbus;
2 
3/**
4 * This class delegates to another event handler. The class is initialized from the master handler. Initialization parameters
5 * can be changed afterwards.
6 * @author Pavel Vlasov
7 *
8 * @param <E>
9 * @param <P>
10 * @param <C>
11 * @param <H>
12 * @param <S>
13 */
14public class EventHandlerFilter<E, P extends Comparable<P>, C, H extends EventBus.Handle<E,P,C>, S extends EventStore<E,P,C,H,S>> extends AbstractEventHandler<E, P, C, H, S> {
15 
16        private EventHandler<E, P, C, H, S> master;
17 
18        public EventHandlerFilter(EventHandler<E,P,C,H,S> master) {
19                super(
20                                master.getCardinality(), 
21                                master.getPriority(),
22                                master.getContext(),
23                                master.consumes(),
24                                master.isOneOff(),
25                                master.getMode(),
26                                master.getPredicate());
27                
28                this.master = master;
29        }
30        
31        @Override
32        public void post(EventDispatchContext<E, P, C, H, S> context, E... events) {
33                master.post(context, events);                
34        }
35        
36        public EventHandler<E, P, C, H, S> getMaster() {
37                return master;
38        }
39 
40}

[all classes][com.hammurapi.eventbus]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov