Tapestry
  1. Tapestry
  2. TAPESTRY-273

Autowire Hivemind services into pages or components

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: Framework
    • Labels:
      None

      Description

      Allow autowiring of HiveMind services into pages and components.

      Comments from HLS:

      You can inject anything you can name (service:, configuration: spring. I can't see why we couldn't make the injection code (InjectPropertyWorker) smart enough to autowire a service if no value is provided for the object attribute of an <inject> element.

        Activity

        Hide
        Jesse Kuhnert added a comment -

        James Carman implemented a patch to fix this. It's in 4.1 now.

        Show
        Jesse Kuhnert added a comment - James Carman implemented a patch to fix this. It's in 4.1 now.
        Hide
        Howard M. Lewis Ship added a comment -

        Auto-wiring is somewhat doable, I think. I think I prefer to be explicit. Also, my latest "trick", using annotations + interfaces to "mix in" common injections, may suit your needs.

        Show
        Howard M. Lewis Ship added a comment - Auto-wiring is somewhat doable, I think. I think I prefer to be explicit. Also, my latest "trick", using annotations + interfaces to "mix in" common injections, may suit your needs.

          People

          • Assignee:
            Unassigned
            Reporter:
            Richard Hensley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development