Project

General

Profile

« Previous | Next » 

Revision 0b44c814

Added by Andreas Kohlbecker about 7 years ago

ref #6169 using mvp for the RegistrationWorkflowView

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractView.java
5 5
import javax.annotation.PostConstruct;
6 6

  
7 7
import org.springframework.beans.BeansException;
8
import org.springframework.beans.factory.annotation.Autowired;
8 9
import org.springframework.context.ApplicationContext;
9 10
import org.springframework.context.ApplicationContextAware;
11
import org.springframework.context.ApplicationEventPublisher;
10 12

  
11 13
import com.vaadin.ui.CustomComponent;
12 14

  
13 15
/**
14 16
 * AbstractView is the base class of all MVP views. It takes care of finding
15 17
 * appropriate presenter component for the view.
16
 * 
18
 *
17 19
 * @param
18 20
 * 			<P>
19 21
 *            type of the presenter this view uses.
20
 * 
22
 *
21 23
 * @author Peter / Vaadin
22 24
 */
23 25
public abstract class AbstractView<P extends AbstractPresenter> extends CustomComponent
......
27 29

  
28 30
	private ApplicationContext applicationContext;
29 31

  
32
    @Autowired
33
    ApplicationEventPublisher eventBus;
34

  
30 35
	@PostConstruct
31 36
	protected final void init() {
32 37
		Logger.getLogger(getClass().getSimpleName()).info("View init");

Also available in: Unified diff