cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <tobia.confo...@linux.it>
Subject Disabling JavaPrimitiveWrap in flowscript
Date Fri, 28 Mar 2008 17:47:35 GMT
Hi

I'd like to disable JavaPrimitiveWrap globally in Cocoon flowscripts.

JavaPrimitiveWrap is a Rhino feature that, when disabled, will return  
strings and numbers from Java calls as native Javascript types,  
instead of wrapped Java objects.

One can disable it on a (flowscript-)thread by thread basis by calling:

org 
.mozilla 
.javascript 
.Context 
.getCurrentContext().getWrapFactory().setJavaPrimitiveWrap(false);

but I'd like to disable it globally for all threads, continuations, etc.

Any hint will be welcome.


Tobia

Mime
View raw message