[MGNLUI-877] Factories should not copy contents of registries into state of their own Created: 14/Mar/13 Updated: 07/Jun/13 Resolved: 07/Jun/13 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | framework |
| Affects Version/s: | None |
| Fix Version/s: | 5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Tobias Mattsson | Assignee: | Tobias Mattsson |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | architecture | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoR: |
Empty
|
||||||||||||||||||||
| Description |
|
It should be the registries that own the mappings and the factories should query the registry each time. Otherwise changes in a registry has no effect. This effects all classes inheriting from MappingFactoryBase.
The class MappingFactoryBase should be removed. The lookup of implementation based on the class of the definition needs to go to the registries. We should introduce a base class for this since the logic will be identical for all of them. See |