Class FunctionClassLoader

All Implemented Interfaces:
Closeable, AutoCloseable

public class FunctionClassLoader extends URLClassLoader

Each JavaFunction may have classes loaded from its own FunctionClassLoader.

These should inherit from the Engine's class loader, so that the functions can access the core classes.

TODO User-defined functions are in this form a sort of Riskscape-sanctioned malware vector. There is a ticket, https://bugs.riskscape.org.nz/issues/434, that has a bunch of mitigations for making this less ropey.