Revision fc216715
Added by Andreas Kohlbecker about 7 years ago
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractView.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.vaadin.mvp; |
2 | 2 |
|
3 |
import java.util.logging.Logger; |
|
4 |
|
|
5 | 3 |
import javax.annotation.PostConstruct; |
6 | 4 |
|
5 |
import org.apache.log4j.Logger; |
|
7 | 6 |
import org.springframework.beans.BeansException; |
8 | 7 |
import org.springframework.beans.factory.annotation.Autowired; |
9 | 8 |
import org.springframework.context.ApplicationContext; |
... | ... | |
25 | 24 |
public abstract class AbstractView<P extends AbstractPresenter> extends CustomComponent |
26 | 25 |
implements ApplicationContextAware { |
27 | 26 |
|
27 |
|
|
28 |
public static final Logger logger = Logger.getLogger(AbstractView.class); |
|
29 |
|
|
28 | 30 |
private P presenter; |
29 | 31 |
|
30 | 32 |
private ApplicationContext applicationContext; |
... | ... | |
53 | 55 |
} |
54 | 56 |
|
55 | 57 |
protected void onViewReady() { |
56 |
Logger.getLogger(getClass().getSimpleName()).info("View ready");
|
|
58 |
logger.trace("View ready");
|
|
57 | 59 |
} |
58 | 60 |
|
59 | 61 |
protected P getPresenter() { |
Also available in: Unified diff
logging with log4j