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)
    Author:
    Dieter Wimberger
    See Also:
    Connection, ConnectionListener
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ConnectionEvent.Type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Connection getSource()
      Accessor method returning the source of the ConnectionEvent instance.
      ConnectionEvent.Type getType()
      Method that helps identifying the type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.