You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AddonContextListener.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.server;
  5. import java.util.EventListener;
  6. /**
  7. * Listener that gets notified then the {@link AddonContext} is initialized,
  8. * allowing an add-on to add listeners to various parts of the framework. In a
  9. * default configuration, add-ons can register their listeners by including a
  10. * file named
  11. * META-INF/services/com.vaadin.terminal.gwt.server.AddonContextListener
  12. * containing the fully qualified class names of classes implementing this
  13. * interface.
  14. *
  15. * @author Vaadin Ltd
  16. * @since 7.0.0
  17. */
  18. public interface AddonContextListener extends EventListener {
  19. /**
  20. * Notifies the listener that the add-on context has been created and
  21. * initialized. An add-on can use this method to get access to an
  22. * {@link AddonContext} object to which listeners can be added.
  23. *
  24. * @param event
  25. * the add-on context event
  26. */
  27. public void contextCreated(AddonContextEvent event);
  28. /**
  29. * Notifies the listener that the add-on context has been closed. An add-on
  30. * can use this method to e.g. close resources that have been opened in
  31. * {@link #contextCreated(AddonContextEvent)}.
  32. *
  33. * @param event
  34. * the add-on context event
  35. */
  36. public void contextDestoryed(AddonContextEvent event);
  37. }