01: package fr.aliacom.dbmjui;
02:
03: /**
04: * Implementors of this interface should be registered against
05: * the DbRegistry using the {@link DbRegistry#addRegistryListener(IRegistryListener)}
06: * method.
07: *
08: * They will receive notifications when a database is register, and
09: * when a database is unregistered.
10: *
11: * @author tom
12: *
13: * (c) 2001, 2003 Thomas Cataldo
14: */
15: public interface IRegistryListener {
16:
17: /**
18: * This method will be called by the {@link DbRegistry} when
19: * and instance is registered.
20: *
21: * @param dbi the newly registered instance
22: */
23: void instanceRegistered(DbInstance dbi);
24:
25: /**
26: * This method will be called by the {@link DbRegistry} when
27: * and instance is unregistered.
28: *
29: * @param dbi the newly unregistered instance
30: */
31: void instanceUnregistered(DbInstance dbi);
32:
33: }
|