Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1534

Object Definitions with identical values for id="..." and name="..." are excluded from GetObjectsByType(...) and GetObjects<T>() calls

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0 M1
    • Fix Version/s: 2.0 M2
    • Component/s: None
    • Labels:
      None

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

        Attachments

          Activity

            People

            • Assignee:
              sbohlen Steve Bohlen
              Reporter:
              sbohlen Steve Bohlen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: