Project

General

Profile

Download (1.3 KB) Statistics
| Branch: | Tag: | Revision:
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 com.vaadin.devday.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.devday.ui.config.VaadinSpringNavigatorConfiguration;
21
import com.vaadin.devday.ui.navigation.NavigationManagerBean;
22
import com.vaadin.spring.annotation.SpringViewDisplay;
23

    
24
/**
25
 * Activates automatic navigation through the {@link NavigationManagerBean} based on
26
 * {@link SpringViewDisplay} annotations. This annotation should be added on a
27
 * {@link Configuration} class of the application to automatically import
28
 * {@link VaadinSpringNavigatorConfiguration}.
29
 *
30
 * @author a.kohlbecker
31
 * @since Feb 28, 2017
32
 *
33
 */
34

    
35
@Target(ElementType.TYPE)
36
@Retention(RetentionPolicy.RUNTIME)
37
@Documented
38
@Import(VaadinSpringNavigatorConfiguration.class)
39
public @interface EnableVaadinSpringNavigation {
40
}
    (1-1/1)