[SPRNET-1534] Object Definitions with identical values for id="..." and name="..." are excluded from GetObjectsByType(...) and GetObjects<T>() calls Created: 27/Nov/12  Updated: 11/Jan/13  Resolved: 27/Nov/12

Status: Resolved
Project: Spring.NET
Component/s: None
Affects Version/s: 2.0 M1
Fix Version/s: 2.0 M2

Type: Improvement Priority: Minor
Reporter: Steve Bohlen Assignee: Steve Bohlen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When objects are registered having been assigned both an id="foo" and name="bar", the object is assigned the value "foo" as its name and the value "bar" as an alias. When calls to .GetObjectsByType(...) and .GetObject<T>() are made, any object whose name appears registered as an alias is removed from the set of resolved objects.

If id="foo" and name="foo" both the object's name and its alias(es) are assigned the value of "foo". When .GetObjectsOfType(...) or .GetObjects<T>() is invoked, this has the side-effect of removing the object from the returned results (since its name is also an alias).



 Comments   
Comment by Steve Bohlen [ 27/Nov/12 ]

Introduce logic to prevent registration of alias value when same as ObjectDefintition name value.

Generated at Sat Jan 25 17:47:17 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.