these notification events, the implementation class must be either declared in the deployment
 descriptor of the web application, annotated with <a href="../annotation/WebListener.html" title="annotation interface in jakarta.servlet.annotation"><code>WebListener</code></a>, or registered via
 one of the addListener methods defined on <a href="../ServletContext.html" title="interface in jakarta.servlet"><code>ServletContext</code></a>.

 <p>
 The order in which implementations of this interface are invoked i