* @param parent a parent classloader
* @return a factory for creating nodyn configuration and runtime instances
*/
public static RuntimeFactory init(ClassLoader parent, RuntimeType runtimeType) {
if (runtimeType == RuntimeType.DYNJS) {
return new DynJSFactory(parent);
}
// TODO: Implement NashornFactory
throw new RuntimeException("Not implemented: " + runtimeType);
}