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.annotation;
|
10
|
|
11
|
import java.lang.annotation.Documented;
|
12
|
import java.lang.annotation.ElementType;
|
13
|
import java.lang.annotation.Retention;
|
14
|
import java.lang.annotation.RetentionPolicy;
|
15
|
import java.lang.annotation.Target;
|
16
|
|
17
|
import org.springframework.context.annotation.Configuration;
|
18
|
import org.springframework.context.annotation.Import;
|
19
|
|
20
|
import com.vaadin.spring.annotation.SpringViewDisplay;
|
21
|
|
22
|
import eu.etaxonomy.vaadin.ui.config.VaadinSpringNavigatorConfiguration;
|
23
|
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean;
|
24
|
|
25
|
/**
|
26
|
* Activates automatic navigation through the {@link NavigationManagerBean} based on
|
27
|
* {@link SpringViewDisplay} annotations. This annotation should be added on a
|
28
|
* {@link Configuration} class of the application to automatically import
|
29
|
* {@link VaadinSpringNavigatorConfiguration}.
|
30
|
*
|
31
|
* @author a.kohlbecker
|
32
|
* @since Feb 28, 2017
|
33
|
*
|
34
|
*/
|
35
|
|
36
|
@Target(ElementType.TYPE)
|
37
|
@Retention(RetentionPolicy.RUNTIME)
|
38
|
@Documented
|
39
|
@Import(VaadinSpringNavigatorConfiguration.class)
|
40
|
public @interface EnableVaadinSpringNavigation {
|
41
|
}
|