Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3890

ObjectGraphBuilder: add a general purpose bean factory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.5, 1.7-beta-2
    • 1.6.6, 1.7-rc-1
    • None
    • None

    Description

      SwingBuilder sports a bean() capable of wiring an existing bean instance into the build process. OGB can't do that.
      It will be great to have this feature as a developer will be able to tweak any bean instance using the builder syntax

      Company acme = ... // fetch company from a webservice perhaps??
      ogb.bean(acme) {
         // add a few employees more
         employee(name: "Duke")
         employee(name: "Tux")
      }
      

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            aalmiray Andres Almiray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: