What about the "Configurable" interface? "Database" extends this interface. What do you mean by a "very good support"?
More about the subject:
If you have a Configurable interface, you still need to trigger the initialization (after all configurations are done).
One possibility is to do it in the getCollection method:
public Collection getCollection() {
if (!initialized) {
... initialize the system ...
initialized = true;
}
}The problem with this approach is the potential delay between the configuration and the actual intialization and the feedback you may receive.
If you set up your system and for example the database's location is unreacheable, when would you like to receive the notification? when you start your server or when a user call the getCollection method, potentially hours after you started the server?
Both alternatives are justifiable and I think that the API should provide a way to implement them both (i.e. introduce an 'init' method to initialize the system).
-Vladimir
-- Vladimir R. Bossicard www.bossicard.com
---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
