commons-dev mailing list archives

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

Hi,

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

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

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" />
</module>

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

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

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

What do you think?

Bye

Achim Huegen


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message