Class ConnectionEvent


  • public class ConnectionEvent
    extends java.lang.Object
    Class implementing a ConnectionEvent.
    These events are used to communicate things that are supposed to be handled within the application context. These events are processed by the Connection instance calling upon its registered listeners.
    Version:
    2.0 (16/07/2006)
    See Also:
    Connection, ConnectionListener
    • Constructor Detail

      • ConnectionEvent

        public ConnectionEvent​(Connection source,
                               ConnectionEvent.Type type)
        Constructs a new instance of a ConnectionEvent with a given source (Connection) and a given type.
        Parameters:
        source - Connection that represents the source of this event.
        type - int that contains one of the defined event types.
    • Method Detail

      • getSource

        public Connection getSource()
        Accessor method returning the source of the ConnectionEvent instance.
        Returns:
        Connection representing the source.
      • getType

        public ConnectionEvent.Type getType()
        Method that helps identifying the type.
        Returns:
        Event type.