pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandro Martini (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIVOT-926) Use existing instance of Application in DesktopApplicationContext
Date Sun, 27 Oct 2013 23:55:30 GMT
Sandro Martini created PIVOT-926:
------------------------------------

             Summary: Use existing instance of Application in DesktopApplicationContext
                 Key: PIVOT-926
                 URL: https://issues.apache.org/jira/browse/PIVOT-926
             Project: Pivot
          Issue Type: Improvement
          Components: wtk
            Reporter: Sandro Martini
            Assignee: Sandro Martini


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





--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message