commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Huegen <>
Subject [HiveMind] Nonintrusive configuration
Date Mon, 08 Mar 2004 20:02:32 GMT


while it is rather easy to reuse HiveMind services with another ioc 
framework this is not true for configuration data. Look at this 

<module id="moduleId" version="1.0.0" >
	<contribution configuration-id="User" >
		<user name="mka" password="mka" />

HiveMind is quite intrusive here. The configuration data resides in a 
Hivemind specific contribution element which is nested in a module 
element. Reuse could be simplified by introducing external configurations:

<module id="moduleId" version="1.0.0" >
	<file-contribution configuration-id="User" fileName="users.xml" 
root="users" />

.. external file users.xml (on classpath):

<?xml version="1.0" encoding="ISO_8859-1"?>
   <user name="mka" password="mka" />

- configurations are framework independent
- configuration files can use a schema for validation
- you can use existing formats/files easily (for those switching to 

What do you think?


Achim Huegen

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message