Open
Description
The goal is to remove this style of writting, because when mapping information's growing (id, name and type) is growing, it becomes hard to maintain.
<instance id="myInstance" map-id="" type="some.package.SomeType" map-type="some.package.ISomeType" />
It would be better to replace it by context's mapping configuration like below:
<root name="applicationContext" mapping-config="config">
<config id="config" type="hex.ioc.di.MappingConfiguration">
<item map-name="myInstance"> <key type="Class" value="some.package.ISomeType"/> <value ref="myInstance"/></item>
</config>
</root>
@context( name = 'applicationContext' mappingConfig="config" )
{
}