felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan Mehrotra <chetan.mehro...@gmail.com>
Subject Re: groovy REPL shell for gogo
Date Thu, 06 Feb 2014 12:31:58 GMT
FWIW you can execute arbitrary code (groovy/ruby etc) within OSGi
context using Felix Script Console [1]

Chetan Mehrotra
[1] http://felix.apache.org/documentation/subprojects/apache-felix-script-console-plugin.html


On Thu, Feb 6, 2014 at 4:21 PM, Felix Meschberger <fmeschbe@adobe.com> wrote:
> Hi
>
> Am 06.02.2014 um 03:20 schrieb Raymond Auge <raymond.auge@liferay.com>:
>
>> Has anyone seen such a beast?
>
> IIUIC this is a shell which is able to execute Java code as if it would be part of a
bundle, right ?
>
> This sounds terrficly interesting and no, I don't know of such a biest.
>
> But I would think that something could easily be implemented based on BeanShell ?
>
> Maybe along these lines:
>
>   * Start session -- installs and starts a pseudo bundle providing the context for execution
>   * execute code in the context of the session bundle
>   * End session -- uninstalls the pseudo bundle for cleanup
>
> Of course, this allows tons of nasty things to be done like starting threads etc. but
testing and development, I could imagine it would be wonderful
>
> WDYT ?
>
> Regards
> Felix
>
>>
>> --
>> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>> (@rotty3000)
>> Senior Software Architect
>> *Liferay, Inc.* <http://www.liferay.com> (@Liferay)
>

Mime
View raw message