vaadin でリフレッシャー アドオンを使用しようとしています。ただし、refresh メソッドは実行されません。私は何が欠けていますか?
@VaadinUI
@PreserveOnRefresh
public class RootUI extends UI {
@Override
protected void init(VaadinRequest request) {
REFRESHER.setRefreshInterval(500);
REFRESHER.addListener(new ChatRefreshListener());
addExtension(REFRESHER);
}
public static final Refresher REFRESHER = new Refresher();
public class ChatRefreshListener implements RefreshListener {
@Override
public void refresh(final Refresher source) {
System.out.println("test"); //this is never executed
}
}
}
@Configuration
@ComponentScan
@EnableAutoConfiguration
public class MyApp extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(MyApp.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(MyApp.class);
}
}
<vaadin.version>7.4.0.alpha2</vaadin.version>