Project

General

Profile

« Previous | Next » 

Revision c5b3791f

Added by Andreas Kohlbecker almost 7 years ago

ref #6169 externalizing data inserter in separate class and package

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/ui/RegistrationUI.java
10 10

  
11 11
import org.springframework.beans.factory.annotation.Autowired;
12 12
import org.springframework.context.ApplicationEventPublisher;
13
import org.springframework.context.annotation.Lazy;
13 14

  
14 15
import com.vaadin.annotations.Theme;
15 16
import com.vaadin.annotations.Title;
......
29 30
import com.vaadin.ui.UI;
30 31
import com.vaadin.ui.themes.ValoTheme;
31 32

  
33
import eu.etaxonomy.cdm.dataInserter.RegistrationRequiredDataInserter;
32 34
import eu.etaxonomy.cdm.vaadin.view.LoginViewBean;
33 35
import eu.etaxonomy.cdm.vaadin.view.registration.DashBoardView;
34 36
import eu.etaxonomy.cdm.vaadin.view.registration.ListViewBean;
......
56 58
    @Autowired
57 59
    private ViewDisplay viewDisplay;
58 60

  
61
    /**
62
     * The RegistrationDefaultDataInserter is not used in the ui directly
63
     * but will as a ApplicationListener for ContextRefreshedEvents insert
64
     * data required for the registration application into the database.
65
     */
66
    @SuppressWarnings("unused")
67
    @Autowired
68
    @Lazy
69
    private RegistrationRequiredDataInserter dataInserter;
70

  
59 71
    //---- pull into abstract super class ? ---------
60 72
    @Autowired
61 73
    SpringViewProvider viewProvider;
......
111 123
        //TODO create annotation:
112 124
        // @Styles(files={""}, branding="brand")
113 125
        //
114
        // the branding can either be specified or can be read from a properties file in .cdmLibrary/{instance-name}/cdm-vaadin.properties
115
        //  See CdmUtils for appropriate methods to access this folder
126
        // the branding can either be specified or can be read from the properties file in .cdmLibrary/remote-webapp/{instance-name}-app.properties
127
        // See CdmUtils for appropriate methods to access this folder
116 128
        // the 'vaadin://' protocol refers to the VAADIN folder
117 129
        Resource registryCssFile = new ExternalResource("vaadin://branding/" + brand + "/css/branding.css");
118 130
        Page.getCurrent().getStyles().add(registryCssFile);

Also available in: Unified diff