Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-22

BuilderFactory autowire properties to services

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0
    • framework
    • None

    Description

      BuilderFactory should have an option to automatically wire up properties to services; if a property exists (i.e. is writable), is for an interface, but is not set via another mechanism (a set-service element perhaps), then BuilderFactory should have the option of searching the Registry for an applicable service.

      This should be controlled by an attribute on the construct element, autowire-services.

      autowire-services should default to true (this is, after all, the first release of HiveMind).

      Boy will this save typing!

      It is dangerous though ... leaving autowire in place risks the possibility of a change in code (particularly, adding a new module) adding a new implementation of a service and breaking existing services (which will no longer build).

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: