Search in sources :

Example 1 with EventModelProvider

use of org.ovirt.engine.ui.webadmin.uicommon.model.EventModelProvider in project ovirt-engine by oVirt.

the class EventModule method getEventModelProvider.

@Provides
@Singleton
@Named("notification")
public EventModelProvider getEventModelProvider(EventBus eventBus, Provider<DefaultConfirmationPopupPresenterWidget> defaultConfirmPopupProvider, @Named("notification") final Provider<EventListModel<Void>> modelProvider) {
    EventModelProvider result = new EventModelProvider(eventBus, defaultConfirmPopupProvider);
    result.setModelProvider(modelProvider);
    return result;
}
Also used : EventModelProvider(org.ovirt.engine.ui.webadmin.uicommon.model.EventModelProvider) Named(com.google.inject.name.Named) Singleton(com.google.inject.Singleton) Provides(com.google.inject.Provides)

Aggregations

Provides (com.google.inject.Provides)1 Singleton (com.google.inject.Singleton)1 Named (com.google.inject.name.Named)1 EventModelProvider (org.ovirt.engine.ui.webadmin.uicommon.model.EventModelProvider)1