class EventBus {

    public void subscribe(final String type, final EventSubscriber subscriber) {
        final EventSubscription subscription =
                new EventSubscription(type, subscriber);
        synchronized (subscriptions) {
            subscriptions.add(subscription);
        }
    }

    public  EventBus();

}