public interface
EventListener
EventListener
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eEventListener\u003c/code\u003e is a tagging interface, meaning it has no methods and serves primarily as a marker.\u003c/p\u003e\n"],["\u003cp\u003eAll event listener interfaces in Java must extend the \u003ccode\u003eEventListener\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe primary purpose of \u003ccode\u003eEventListener\u003c/code\u003e is to identify classes as event listeners for specific events.\u003c/p\u003e\n"],["\u003cp\u003eVarious Java APIs, such as those for database connectivity and beans, utilize event listeners extending \u003ccode\u003eEventListener\u003c/code\u003e for event handling.\u003c/p\u003e\n"]]],[],null,["# EventListener\n\npublic interface **EventListener** \n\n|---|---|---|\n| Known Indirect Subclasses [ConnectionEventListener](../../../reference/javax/sql/ConnectionEventListener.html), [EventListenerProxy](../../../reference/java/util/EventListenerProxy.html)\\\u003cT extends [EventListener](../../../reference/java/util/EventListener.html)\\\u003e, [HandshakeCompletedListener](../../../reference/javax/net/ssl/HandshakeCompletedListener.html), [PropertyChangeListener](../../../reference/java/beans/PropertyChangeListener.html), [PropertyChangeListenerProxy](../../../reference/java/beans/PropertyChangeListenerProxy.html), [RowSetListener](../../../reference/javax/sql/RowSetListener.html), [SSLSessionBindingListener](../../../reference/javax/net/ssl/SSLSessionBindingListener.html), [StatementEventListener](../../../reference/javax/sql/StatementEventListener.html) |----------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ConnectionEventListener](../../../reference/javax/sql/ConnectionEventListener.html) | An object that registers to be notified of events generated by a `PooledConnection` object. | | [EventListenerProxy](../../../reference/java/util/EventListenerProxy.html)\\\u003cT extends [EventListener](../../../reference/java/util/EventListener.html)\\\u003e | An abstract wrapper class for an `EventListener` class which associates a set of additional parameters with the listener. | | [HandshakeCompletedListener](../../../reference/javax/net/ssl/HandshakeCompletedListener.html) | This interface is implemented by any class which wants to receive notifications about the completion of an SSL protocol handshake on a given SSL connection. | | [PropertyChangeListener](../../../reference/java/beans/PropertyChangeListener.html) | A \"PropertyChange\" event gets fired whenever a bean changes a \"bound\" property. | | [PropertyChangeListenerProxy](../../../reference/java/beans/PropertyChangeListenerProxy.html) | A class which extends the `EventListenerProxy` specifically for adding a `PropertyChangeListener` with a \"bound\" property. | | [RowSetListener](../../../reference/javax/sql/RowSetListener.html) | An interface that must be implemented by a component that wants to be notified when a significant event happens in the life of a `RowSet` object. | | [SSLSessionBindingListener](../../../reference/javax/net/ssl/SSLSessionBindingListener.html) | This interface is implemented by objects which want to know when they are being bound or unbound from a SSLSession. | | [StatementEventListener](../../../reference/javax/sql/StatementEventListener.html) | An object that registers to be notified of events that occur on PreparedStatements that are in the Statement pool. | |||\n\nA tagging interface that all event listener interfaces must extend."]]