link
Avalon
Avalon Central
Home PlanetProductsCentral
Using Merlin
Creating a Default Configuration

Merlin provides support for the association of a default with a component type. This is achieved by including a <classname>.xconfig resource co-located with the component class.

Resources supporting this tutorial are contained in the tutorials/configuration/defaults/ directory.

HelloComponent.xconfig

<configuration>
  <source>packaged default</source>
</configuration>

Build and run the tutorial again.

$ maven
$ merlin -execute target\classes

In the logging output we see that the default configuration supplied to the component has been generated by the information we supplied inside the xconfig resource.

[INFO   ] (tutorial.hello): configuration stage
[INFO   ] (tutorial.hello): initialization stage
[INFO   ] (tutorial.hello): source: packaged default
Using Block Overrides

The next tutorial shows how Merlin provides support for the packaging of configurations within the block.xml deployment directive with a component.