Hello,
I am writing a workflow application where I want to use BeanShell as the scripting and variable context mechanism.  I want to ensure in some cases however that certain variables are "locked" or "sealed" ie the effect is the variables are readonly to the script.  An easy example is having a variable int x = 10; in the global namespace, sealing it in someway.. ie either sealing the entire namespace or just that variable for example and then from somewhere else allowing access to x but throwing an exception if its modified for example if (x < 9) ...  ok  but x=8 throws ...
 
In Rhino (netscape's javascript) for example this is achieved via an api call that can seal a context (similar to a namespace in beanshell).  Is such a facility available in Beanshell, and if it is not is there a point in the beanshell code where you might recommend adding such functionality ie a central place where variables are accessed.
 
Mike...