import { Store } from 'redux' ; import { EventBus } from './EventBus' ; import { EventFacade } from './EventFacade' ; export class EventBusFactory { private store : Store < any > ; private eventFacade : EventFacade ; public constructor ( store , eventFacade ) { this . store = store ; this . eventFacade = eventFacade ; } public createBus ( ) { return new EventBus ( this . store , this . eventFacade ) ; } }