Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-926

Use existing instance of Application in DesktopApplicationContext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • wtk
    • None

    Description

      To be able to better interact with Scripting environment, some times could be useful to execute an already created (but not started) Application instance.

      For example I could create a Groovy Script (to execute Java/Groovy classes implementing a Pivot Application) and Inject some properties from this "external" environment into my Application.
      But then I need a dedicated (new) method in DesktopApplicationContext to give my Application instance to run.
      For injecting properties in Application, a new ApplicationWithProperties Adapter will be created, just as a sample, but more important to not add methods to existing Application / Application.Adapter classes.

      Some info here:
      http://apache-pivot-developers.417237.n3.nabble.com/Inject-properties-in-Application-td4026326.html

      Attachments

        Activity

          People

            smartini Sandro Martini
            smartini Sandro Martini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: