package org.vaadin.spring.mvp.explicit;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.vaadin.spring.UIScope;
import org.vaadin.spring.annotation.EnableVaadin;
import org.vaadin.spring.events.EventBus;
import org.vaadin.spring.mvp.FooView;

@Configuration
@EnableVaadin
public class ExplicitConfig {

    @Autowired
    private EventBus eventBus;

    @Bean
    @UIScope
    public FooView fooView() {
        return new FooView();
    }

    @Bean
    @UIScope
    public ExplicitPresenter fooPresenter() {
        return new ExplicitPresenter(fooView(), eventBus);
    }
}

@@ -235,23 +235,39 @@
 .spring.
-UIScope
+annotation.EnableVaadin
 ;%0Aimport
@@ -292,36 +292,37 @@
 .annotation.
-Enable
 Vaadin
+UIScope
 ;%0Aimport org
@@ -506,32 +506,38 @@
 %0A    @Bean%0A    @
+Vaadin
 UIScope%0A    publ
@@ -611,16 +611,22 @@
 an%0A    @
+Vaadin
 UIScope%0A

Test Class Update: Change UIScope => VaadinUIScope