From 1cc1d29c2fe39604c36d83621d94ada00ae86843 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Fri, 6 Oct 2023 22:38:26 +1300 Subject: [PATCH] Deprecate ServletContextListener (for shutdown in servlet container) Deprecated for removal - no intention to replace. Create your own ServletContextListener if needed for your application. --- .../src/main/java/io/ebean/event/ServletContextListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ebean-api/src/main/java/io/ebean/event/ServletContextListener.java b/ebean-api/src/main/java/io/ebean/event/ServletContextListener.java index ed18bd413..bcb3d3359 100644 --- a/ebean-api/src/main/java/io/ebean/event/ServletContextListener.java +++ b/ebean-api/src/main/java/io/ebean/event/ServletContextListener.java @@ -3,6 +3,9 @@ package io.ebean.event; import jakarta.servlet.ServletContextEvent; /** + * Deprecated for removal - no intention to replace. Create your own copy of this + * ServletContextListener if needed for your application. + *

* Listens for webserver server starting and stopping events. *

* This should be used when the deployment is into a servlet container where the webapp @@ -15,6 +18,7 @@ import jakarta.servlet.ServletContextEvent; * hook that Ebean registers. *

*/ +@Deprecated(forRemoval = true) public class ServletContextListener implements jakarta.servlet.ServletContextListener { /**