[
https://issues.apache.org/jira/browse/PIVOT-926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806494#comment-13806494
]
Sandro Martini commented on PIVOT-926:
--------------------------------------
First version: Committed revision 1536227.
Tell me for comments.
> 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)