Hi Niclas

Niclas Hedhman <[EMAIL PROTECTED]> wrote:

[Overriding dependencies]
Helps??

Well, I understood this. However, I'd like to do the same with blocks. Therefore, I'd need some way to override the dependency declarations in the sub-blocks without touching their archives, something like this:


<container name="main">
  <classloader>
    <classpath>
      <repository>
        <resource id="utils:scheduler-api" version="1.0"/>
      </repository>
    </classpath>
  </classloader>

  <services>
    <service type="utils.Scheduler">
      <source>time-scheduler/scheduler</source>
    </service>
    <service type="utils.Scheduler">
      <source>event-scheduler/scheduler</source>
    </service>
  </services>

<include name="hello1" id="mygroup:hello" version="1.0"/>
<include name="hello2" id="mygroup:hello" version="1.0"/>
<include name="time-scheduler" id="utils:time-scheduler" version="1.0"/>
<include name="event-scheduler" id="utils:event-scheduler" version="1.0"/>
</container>


<targets>
<target path="/main/hello1/hello">
<dependencies>
<dependency key="scheduler" source="/main/time-scheduler/scheduler"/>
</dependencies>
</target>
<target path="/main/hello2/hello">
<dependencies>
<dependency key="scheduler" source="/main/event-scheduler/scheduler"/>
</dependencies>
</target>
</targets>


Your solution above is of course perfectly usable for my current problem, but I'd still like to know whether something like this would be possible. With a growing component repository this might be needed at some point -- or am I getting something wrong about when to use blocks?

cu,
   Raffi

--
Neu im Usenet? Fragen? -> http://www.use-net.ch/usenet_intro_de.html

Raffael Herzog - [EMAIL PROTECTED] - www.raffael.ch - ICQ #67961355


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



Reply via email to