1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.vaadin.ui.config;
|
10
|
|
11
|
import org.springframework.context.annotation.Bean;
|
12
|
import org.springframework.context.annotation.Configuration;
|
13
|
|
14
|
import com.vaadin.spring.annotation.UIScope;
|
15
|
import com.vaadin.spring.internal.SpringViewDisplayPostProcessor;
|
16
|
|
17
|
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean;
|
18
|
|
19
|
/**
|
20
|
* @author a.kohlbecker
|
21
|
* @since Feb 28, 2017
|
22
|
*
|
23
|
*/
|
24
|
@Configuration
|
25
|
public class VaadinSpringNavigatorConfiguration {
|
26
|
|
27
|
@Bean //TODO see VaadinNavigatorConfiguration
|
28
|
@UIScope
|
29
|
public NavigationManagerBean vaadinNavigator() {
|
30
|
return new NavigationManagerBean();
|
31
|
}
|
32
|
|
33
|
@Bean //TODO see VaadinNavigatorConfiguration
|
34
|
public static SpringViewDisplayPostProcessor springViewDisplayPostProcessor() {
|
35
|
return new SpringViewDisplayPostProcessor();
|
36
|
}
|
37
|
|
38
|
|
39
|
}
|