ConnectionListener getConnectionListener( ConnectionType type ) {
        ConnectionManager connectionManager = XMPPServer.getInstance().getConnectionManager();
        return connectionManager.getListener( type, getTLSPolicy().equals( Connection.TLSPolicy.directTLS) );
    }
A collection of socket acceptor event listeners, invoked when they are being stopped or started.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionListener.java