Project

General

Profile

« Previous | Next » 

Revision 5b7fa02a

Added by Andreas Kohlbecker over 5 years ago

fix #7742 disposing view, presenter and ehcaches when popupviews are closed

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPresenter.java
6 6
import org.hibernate.Session;
7 7
import org.hibernate.engine.internal.StatefulPersistenceContext;
8 8
import org.hibernate.engine.spi.SessionImplementor;
9
import org.springframework.beans.factory.DisposableBean;
9 10
import org.springframework.beans.factory.annotation.Autowired;
10 11
import org.springframework.beans.factory.annotation.Qualifier;
11 12
import org.springframework.security.core.context.SecurityContext;
......
30 31
 * @param <V>
31 32
 *            type of the view this presenter governs
32 33
 */
33
public abstract class AbstractPresenter<V extends ApplicationView> implements Serializable {
34
public abstract class AbstractPresenter<V extends ApplicationView> implements Serializable, DisposableBean {
34 35

  
35 36

  
36 37
    private static final long serialVersionUID = 5260910510283481832L;
......
236 237
        return event.getSourceView() != null && event.getSourceView().equals(getView());
237 238
    }
238 239

  
240
    @Override
241
    public
242
    void destroy() throws Exception {
243
        view = null;
244
    }
245

  
239 246
}

Also available in: Unified diff