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/navigation/NavigationUriFragmentManager.java
1 1
package com.vaadin.devday.ui.navigation;
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.navigator.Navigator.UriFragmentManager;
7 7
import com.vaadin.server.Page;
......
16 16
    private static final long serialVersionUID = -2033745435437337863L;
17 17

  
18 18
    @Autowired
19
    EventBus.UIEventBus eventBus;
19
    ApplicationEventPublisher eventBus;
20 20

  
21 21
	public NavigationUriFragmentManager() {
22 22
		super(Page.getCurrent());
......
24 24

  
25 25
	@Override
26 26
	public void uriFragmentChanged(UriFragmentChangedEvent event) {
27
	    eventBus.publish(this, new NavigationEvent(getState()));
27
	    eventBus.publishEvent(new NavigationEvent(getState()));
28 28
	}
29 29
}

Also available in: Unified diff