com.vaadin.server
Interface AddonContextListener

All Superinterfaces:
java.util.EventListener, java.io.Serializable

public interface AddonContextListener
extends java.util.EventListener, java.io.Serializable

Listener that gets notified then the AddonContext is initialized, allowing an add-on to add listeners to various parts of the framework. In a default configuration, add-ons can register their listeners by including a file named META-INF/services/com.vaadin.server.AddonContextListener containing the fully qualified class names of classes implementing this interface.

Since:
7.0.0
Author:
Vaadin Ltd

Method Summary
 void contextCreated(AddonContextEvent event)
          Notifies the listener that the add-on context has been created and initialized.
 void contextDestroyed(AddonContextEvent event)
          Notifies the listener that the add-on context has been closed.
 

Method Detail

contextCreated

void contextCreated(AddonContextEvent event)
Notifies the listener that the add-on context has been created and initialized. An add-on can use this method to get access to an AddonContext object to which listeners can be added.

Parameters:
event - the add-on context event

contextDestroyed

void contextDestroyed(AddonContextEvent event)
Notifies the listener that the add-on context has been closed. An add-on can use this method to e.g. close resources that have been opened in contextCreated(AddonContextEvent).

Parameters:
event - the add-on context event


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.