Revision a27635bd
Added by Andreas Müller almost 2 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPresenter.java | ||
---|---|---|
3 | 3 |
import java.io.Serializable; |
4 | 4 |
import java.util.Stack; |
5 | 5 |
|
6 |
import org.apache.log4j.Logger; |
|
6 |
import org.apache.logging.log4j.LogManager; |
|
7 |
import org.apache.logging.log4j.Logger; |
|
7 | 8 |
import org.springframework.beans.factory.DisposableBean; |
8 | 9 |
import org.springframework.beans.factory.annotation.Autowired; |
9 | 10 |
import org.springframework.beans.factory.annotation.Qualifier; |
... | ... | |
18 | 19 |
import eu.etaxonomy.cdm.vaadin.event.EditorActionContext; |
19 | 20 |
import eu.etaxonomy.cdm.vaadin.event.EntityChangeEvent; |
20 | 21 |
import eu.etaxonomy.vaadin.ui.navigation.NavigationManager; |
22 |
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean; |
|
21 | 23 |
import eu.etaxonomy.vaadin.ui.view.DoneWithPopupEvent; |
22 | 24 |
import eu.etaxonomy.vaadin.ui.view.PopupView; |
23 | 25 |
|
... | ... | |
33 | 35 |
*/ |
34 | 36 |
public abstract class AbstractPresenter<V extends ApplicationView> implements Serializable, DisposableBean { |
35 | 37 |
|
38 |
private final static Logger logger = LogManager.getLogger(); |
|
36 | 39 |
|
37 | 40 |
private static final long serialVersionUID = 5260910510283481832L; |
38 | 41 |
|
39 |
public static final Logger logger = Logger.getLogger(AbstractPresenter.class); |
|
40 |
|
|
41 | 42 |
private V view; |
42 | 43 |
|
43 | 44 |
protected V getView() { |
44 | 45 |
if(view == null){ |
45 |
Logger.getLogger(this.getClass()).warn("CDM-VAADIN#6562: presenter " + toString() + " without view.");
|
|
46 |
logger.warn("CDM-VAADIN#6562: presenter " + toString() + " without view.");
|
|
46 | 47 |
} |
47 | 48 |
return view; |
48 | 49 |
} |
Also available in: Unified diff
ref #10072 adapt vaadin to log4j2 and cleanup