Using MerlinDeclaring a configuration in the Component DirectiveWe can modify the configuration behaviour by including a configuration within the block.xml deployment directive. Resources supporting this tutorial are contained in the tutorials/configuration/block directory. <container name="hello"> <component name="hello" class="tutorial.HelloComponent"> <configuration> <source>explicit configuration within block</source> </configuration> </component> </container> Build and run the tutorial again. $ merlin -execute target\classes In the logging output we see that the configuration supplied to the component has been overrided by the information we supplied inside the <component> directive. [INFO ] (hello): configuration stage [INFO ] (hello): initialization stage [INFO ] (hello): source: explicit configuration within block Using DefaultsThe next tutorial shows how Merlin provides support for the packaging of default configurations with a component. |