List of usage examples for javax.resource.spi ConnectionEvent ConnectionEvent
public ConnectionEvent(ManagedConnection source, int eid)
From source file:com.googlecode.cassandra.jca.managed.connection.CassandraManagedConnection.java
@Override public void close() { // logger.info("void close()"); // logger.info("this = " + this); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(cassandraConnection); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event);/*from w ww . ja va2s . c o m*/ } }
From source file:eu.luminis.httpjca.HttpManagedConnection.java
/** * Close handle// ww w. jav a2 s .com * * @param handle The handle */ void closeHandle(HttpConnection handle) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event); } }
From source file:org.apache.webdav.connector.WebDAVManagedConnection.java
public void close() { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(connection); for (Iterator it = listeners.iterator(); it.hasNext();) { ((ConnectionEventListener) it.next()).connectionClosed(event); }// w w w . j a va 2 s . c o m }