Project

General

Profile

« Previous | Next » 

Revision 43e0fe91

Added by Andreas Kohlbecker about 7 years ago

replacing Vaadin4Spring Event Bus by Spring ApplicationEventPublisher

View differences:

src/main/java/com/vaadin/devday/ui/DevDayUI.java
1 1
package com.vaadin.devday.ui;
2 2

  
3 3
import org.springframework.beans.factory.annotation.Autowired;
4
import org.vaadin.spring.events.EventBus;
4
import org.springframework.context.ApplicationEventPublisher;
5 5

  
6 6
import com.vaadin.annotations.Theme;
7 7
import com.vaadin.annotations.Viewport;
......
26 26
	private ViewDisplay viewDisplay;
27 27

  
28 28
	@Autowired
29
	private EventBus.UIEventBus eventBus;
29
	private ApplicationEventPublisher eventBus;
30 30

  
31 31
	/*
32 32
     * this HACKY solution forces the bean to be instantiated, TODO do it properly
......
41 41

  
42 42
		setContent((Component) viewDisplay);
43 43

  
44
		eventBus.publish(this, new UIInitializedEvent());
44
		eventBus.publishEvent(new UIInitializedEvent());
45 45
	}
46 46

  
47 47
	// @WebServlet(value = "/*", asyncSupported = true)

Also available in: Unified diff