pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Martini <sandro.mart...@gmail.com>
Subject Inject properties in Application
Date Fri, 04 Oct 2013 15:39:55 GMT
Hi all,
after doing some test from Groovy, using some Groovy Script to create
minimal Pivot Applications, for more tests on this:
you can find related examples here:

I'm thinking that for 2.1 could be useful to have a way to inject data
inside Applications, for example have some variable (like a
Classloader and maybe others) in a script and inject (or even set by
hand) in the Application.
But of course this requires a little update in that API, like add a
method setExternalProperties(Map <String, Object> properties) or
similar ... and let Applications implement it if needed (or use the
empty version in Application.Adapter) ...

Then, DesktopApplicationContext currently uses a Class instance of
Application (dynamically loading the class instance), so maybe we
could even add a method to get an Application instance already created

What do you think ?

after Groovy, even Scala-2.11.0 (now in Milestone 5) should support
Scripting from shell, so this kind of features could be useful ...
And on Jython I'm sure we'll find a way to make it work the same,
probably the PIVOT-917 issue (see above) will be resolved rewriting
related samples in the "right Pivot-way" :-) ... if someone want to
help us on this, is welcome.


View raw message