I am using jython interpreter programmatically (PythonInterpreter) in my java application, and I'd like to add a specific class, eg. MyJythonLib as a Jython import module so that my Jython script could have something like:
import MyJythonLib
a = MyJythonLib.getStuff()
where MyJythonLib.java is
public class MyJythonLib
{
private Object stuff;
public Object getStuff()
{
return stuff;
}
}
How do I set this class to be a module for my Jython interpreter?