You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2014/03/21 18:31:45 UTC

[jira] [Updated] (PIVOT-926) Use existing instance of Application in DesktopApplicationContext

     [ https://issues.apache.org/jira/browse/PIVOT-926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-926:
---------------------------------

    Fix Version/s: 2.1

> 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
>             Fix For: 2.1
>
>
> 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.2#6252)