Skip to content

Replace map-type attribute by Context's mapping-configuration #201

Open
@FrancisBourre

Description

@FrancisBourre

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" )
{
	
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions