Argument values specifyed using the context map override corresponding argument value at any level
If the value of an argument is given in the context map, this value is used for any occurrences of the argument at any level.
with the following ADLs:
<definition name="A" arguments="i"> <content class="${i}"/> </definition>
<definition name="B" arguments="i"> <component name="a1" definition="A(A1class)"/> <component name="a2"> <content class="${i}"/> </component> </definition>
If the B ADL is instantiated using the following code:
Map context = new HashMap(); context.put("i", "A2class"); Factory.newComponent("A", context);
Then both sub components "a1" and "a2" will have the "A2class" implementation class.