Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-3

[chain] Decouple CatalogFactory lookup from LookupAction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None
    • None
    • Operating System: other
      Platform: Other

    • 34306

    Description

      LookupAction currently uses the static CatalogFactory.getInstance() method to
      get a CatalogFactory; this interferes with catalog/command instantiation
      processes which don't register catalogs with the static instance. Rather than
      require all instantiation processes to use the static registration, LookupAction
      should be changed to have a CatalogFactory property which can be set by a
      "Dependency Injection" IoC framework like Spring. For backwards compatibility,
      the property can default to being set to the static singleton instance.

      I have this code mostly written, simply awaiting a bit of testing – but we
      might as well get it in before the Chain 1.1 release, so I wanted to register it
      in Bugzilla.

      Attachments

        Activity

          People

            Unassigned Unassigned
            germuska Joseph Lad Germuska
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: