commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Lindquist <jo...@kawoo.co.uk>
Subject [HiveMind] Services and extensions ...
Date Thu, 18 Sep 2003 10:44:27 GMT
Is it desirable to have services defined in a single module and the 
extensions to those services defined in a separate module?

Is there a difference between the following hivemodule xml?


<?xml version="1.0"?>
<module id="hivemind.examples" version="1.0.0">
   <service id="Adder" interface="hivemind.examples.Adder" 
model="singleton"/>
	<invoke-factory service-id="hivemind.BuilderFactory">
		<construct
			class="hivemind.examples.impl.AdderImpl">
		</construct>
	</invoke-factory>
   </service>
</module>

and

<?xml version="1.0"?>
<module id="hivemind.examples" version="1.0.0">
   <service id="Adder" interface="hivemind.examples.Adder" 
model="singleton"/>
</module>

<?xml version="1.0"?>
<module id="hivemind.examples.impl" version="1.0.0">
   <extend-service service-id="hivemind.examples.Adder">
	<invoke-factory service-id="hivemind.BuilderFactory">
		<construct
			class="hivemind.examples.impl.AdderImpl">
		</construct>
	</invoke-factory>
   </extend-service>
</module>

Mime
View raw message