use of org.eclipse.rdf4j.repository.event.NotifyingRepositoryConnection 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;
}
Aggregations