Reply to Message

View discussion in a popup

Replying to:
iiliev
VMware Employee
VMware Employee

This property is used to filter Java classes that are visible to scripts. For more information, try googling for ClassShutter (for example, the javadoc for this interface is listed here http://www.jarvana.com/jarvana/view/rhino/js/1.6R6-candidate2/js-1.6R6-candidate2-javadoc.jar!/org/m...

Logic in our code is the following:

if (property "com.vmware.scripting.javascript.allow-native-object" is false)

{

    if (property "com.vmware.scripting.rhino-class-shutter-file" defines a valid file name) {

        load shutters from this file

    } else {

        load shutters from file 'PatternClassShutter.list' // currently, this file contains one line - java.util.*

    }

    Context.getCurrentContext().setClassShutter(shutters loaded above);

} else {

    // no shutters defined

}

Hope this helps,

Ilian

View solution in original post