Search in sources :

Example 1 with RepositoryListener

use of org.eclipse.rdf4j.repository.event.RepositoryListener in project rdf4j by eclipse.

the class NotifyingRepositoryWrapper method getConnection.

@Override
public NotifyingRepositoryConnection getConnection() throws RepositoryException {
    RepositoryConnection con = getDelegate().getConnection();
    NotifyingRepositoryConnection ncon = new NotifyingRepositoryConnectionWrapper(this, con, getDefaultReportDeltas());
    if (activated) {
        for (RepositoryListener listener : listeners) {
            listener.getConnection(this, ncon);
        }
    }
    for (RepositoryConnectionListener l : conListeners) {
        ncon.addRepositoryConnectionListener(l);
    }
    return ncon;
}
Also used : RepositoryConnection(org.eclipse.rdf4j.repository.RepositoryConnection) NotifyingRepositoryConnection(org.eclipse.rdf4j.repository.event.NotifyingRepositoryConnection) RepositoryListener(org.eclipse.rdf4j.repository.event.RepositoryListener) RepositoryConnectionListener(org.eclipse.rdf4j.repository.event.RepositoryConnectionListener) NotifyingRepositoryConnection(org.eclipse.rdf4j.repository.event.NotifyingRepositoryConnection)

Aggregations

RepositoryConnection (org.eclipse.rdf4j.repository.RepositoryConnection)1 NotifyingRepositoryConnection (org.eclipse.rdf4j.repository.event.NotifyingRepositoryConnection)1 RepositoryConnectionListener (org.eclipse.rdf4j.repository.event.RepositoryConnectionListener)1 RepositoryListener (org.eclipse.rdf4j.repository.event.RepositoryListener)1