01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.repository.event;
07:
08: import org.openrdf.repository.Repository;
09:
10: /**
11: *
12: * @author Herko ter Horst
13: */
14: public interface NotifyingRepository extends Repository {
15:
16: /**
17: * Registers a <tt>RepositoryListener</tt> that will receive notifications
18: * of operations that are performed on this repository.
19: */
20: public void addRepositoryListener(RepositoryListener listener);
21:
22: /**
23: * Removes a registered <tt>RepositoryListener</tt> from this repository.
24: */
25: public void removeRepositoryListener(RepositoryListener listener);
26:
27: /**
28: * Registers a <tt>RepositoryConnectionListener</tt> that will receive
29: * notifications of operations that are performed on any< connections that
30: * are created by this repository.
31: */
32: public void addRepositoryConnectionListener(
33: RepositoryConnectionListener listener);
34:
35: /**
36: * Removes a registered <tt>RepositoryConnectionListener</tt> from this
37: * repository.
38: */
39: public void removeRepositoryConnectinoListener(
40: RepositoryConnectionListener listener);
41:
42: }
|