Project

General

Profile

« Previous | Next » 

Revision ec462234

Added by Andreas Kohlbecker about 7 years ago

ref #6169 initial list view on registrations

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPresenter.java
3 3
import java.util.logging.Logger;
4 4

  
5 5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.beans.factory.annotation.Qualifier;
6 7

  
7 8
import com.vaadin.spring.annotation.SpringComponent;
9
import com.vaadin.spring.annotation.ViewScope;
8 10

  
9 11
import eu.etaxonomy.cdm.api.application.CdmRepository;
10 12

  
......
19 21
 *            type of the view this presenter governs
20 22
 */
21 23
@SpringComponent
24
@ViewScope
22 25
public abstract class AbstractPresenter<V extends ApplicationView> {
23 26

  
24 27
	private V view;
25 28

  
26
	@Autowired
27
	private CdmRepository repo;
28 29

  
29 30
	protected V getView() {
30 31
		return view;
31 32
	}
32 33

  
34
	@Autowired
35
	@Qualifier("cdmRepository")
36
	private CdmRepository repo;
37

  
38
	/**
39
	 * @return the repo
40
	 */
41
	public CdmRepository getRepo() {
42
	    return repo;
43
	}
44

  
33 45
	/**
34 46
	 * Notifies the presenter that its view is initialized so that presenter can
35 47
	 * start its own initialization if required.
......
61 73
	public void onViewExit() {
62 74

  
63 75
	}
76

  
64 77
}

Also available in: Unified diff