/** * Initializes a {@link SimpleEventBus} as specified through this Builder. * * @return a {@link SimpleEventBus} as specified through this Builder */ public SimpleEventBus build() { return new SimpleEventBus(this); }
/** * Initializes a {@link SimpleEventBus} as specified through this Builder. * * @return a {@link SimpleEventBus} as specified through this Builder */ public SimpleEventBus build() { return new SimpleEventBus(this); }
@Bean public EventBus eventBus(){ return new SimpleEventBus(); }
/** * Provides the default EventBus implementation. Subclasses may override this method to provide their own default. * * @param config The configuration based on which the component is initialized. * @return The default EventBus to use. */ protected EventBus defaultEventBus(Configuration config) { return new SimpleEventBus(Integer.MAX_VALUE, config.messageMonitor(EventBus.class, "eventBus")); }