From: Krzysztof Dabrowski <brushlst@po...> - 2003-05-28 15:36:07
I'm going to embed jython in our server application and i would like to give
users the ability to write customer extensions without compromising the
I have the following questions:
a) how can i restrict the "java classpath" of jython script? I do not want the
script to be able to import any class from main java application classpath. I
would like to give him access only to selected subset of classes.
b) how can i prevent jython script from using static methods and fields from
the main java application (if a) is not possible then i have to stop them
with messing around with that).
Super-good would be if i could run the jython script in some kind of sandbox
where i set the rules and script is prohibited from going "outside" of the
I would appreciate your help,