[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


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).

Comment by Steve Bohlen [ 27/Nov/12 ]

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

Generated at Sat Jul 04 19:55:46 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.