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>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to