Hi,
Is there a way to add components to the ServiceManager of another component which aren't specified in the dependencies? Example scenario:
<component name="html-handler" class="my.package.HtmlHandler"/> <component name="plain-text-handler" class="my.package.PlainTextHandler"/> <component class="my.package.DataHandler"> <dependencies> <dependency key="plain-text" source="plain-text-handler"/> <dependency key="html" source="html-handler"/> </dependencies> <configuration> <handlers> <handler> <mime-type>text/html</mime-type> <service>html</service> </handler> <handler> <mime-type>text/plain</mime-type> <service>plain-text</service> </handler> </handlers> </configuration> </component>
The problem here is that because the DataHandler component doesn't specify the dependencies 'plain-text' and 'html', Merlin simply ignores these dependency declarations. How can I solve such a problem without having to change the xinfo for the dispatcher (DataHandler) for each new handler I'd like to add?
I'm using Merlin 3.2.4.
Upgrade to 3.3 and grap a reference to the ContainmentModel then pull in your dependencies dynamimically (see tutorial/dynamics for an example).
Cheers, Steve.
TIA, Raffi
--
|---------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org | |---------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
