Example usage for com.vaadin.server SessionDestroyEvent getService

List of usage examples for com.vaadin.server SessionDestroyEvent getService

Introduction

In this page you can find the example usage for com.vaadin.server SessionDestroyEvent getService.

Prototype

public VaadinService getService() 

Source Link

Document

Gets the Vaadin service from which the even originates.

Usage

From source file:org.vaadin.tori.ToriApiLoader.java

License:Apache License

@Override
public void sessionDestroy(final SessionDestroyEvent event) {
    if (sessionId != null && sessionId.equals(event.getSession().getSession().getId())) {
        if (toriActivityMessaging != null) {
            toriActivityMessaging.deregister();
        }/*from ww w  . j av a  2 s .  c  om*/
        event.getService().removeSessionDestroyListener(this);
    }
}