Revision 683a331c
Added by Andreas Kohlbecker about 7 years ago
src/main/java/eu/etaxonomy/cdm/addon/config/CdmVaadinConfiguration.java | ||
---|---|---|
13 | 13 |
import org.apache.log4j.Logger; |
14 | 14 |
import org.springframework.context.annotation.ComponentScan; |
15 | 15 |
import org.springframework.context.annotation.Configuration; |
16 |
import org.vaadin.spring.events.annotation.EnableEventBus; |
|
16 | 17 |
|
17 | 18 |
import com.vaadin.spring.annotation.EnableVaadin; |
18 | 19 |
import com.vaadin.spring.server.SpringVaadinServlet; |
... | ... | |
24 | 25 |
* |
25 | 26 |
*/ |
26 | 27 |
@Configuration |
27 |
@ComponentScan(basePackages={"eu.etaxonomy.cdm.vaadin"}) |
|
28 |
@ComponentScan(basePackages={ |
|
29 |
"eu.etaxonomy.cdm.vaadin", |
|
30 |
"com.vaadin.devday.ui" |
|
31 |
}) |
|
28 | 32 |
@EnableVaadin // this imports VaadinConfiguration |
33 |
@EnableEventBus |
|
34 |
//@Import(EventBusConfiguration.class) |
|
29 | 35 |
public class CdmVaadinConfiguration { |
30 | 36 |
|
31 | 37 |
public static final Logger logger = Logger.getLogger(CdmVaadinConfiguration.class); |
... | ... | |
40 | 46 |
public static class Servlet extends SpringVaadinServlet { |
41 | 47 |
} |
42 | 48 |
|
43 |
|
|
44 | 49 |
public CdmVaadinConfiguration() { |
45 | 50 |
logger.debug("CdmVaadinConfiguration enabled"); |
46 | 51 |
} |
47 | 52 |
|
53 |
|
|
48 | 54 |
} |
Also available in: Unified diff
porting the devday 2016 ui framework to spring - not fully working