You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Jan Lukavský <je...@seznam.cz> on 2019/02/12 15:47:19 UTC

Inject URL into runner's ClassLoader

Hi,

I'm working on a project for which I need to supply URL from where 
runner should load classes (at least when it cannot find them locally). 
I'd say, that most runners already use URLClassLoader, so that should be 
definitely possible, but there seems to be no API for this (definitely 
not runner agnostic, but it seems to me that even a runner specific way 
might be tricky). The question is - did anyone try to solve similar 
issue? The need for this would arise any time some REPL console would be 
implemented, because the classes would definitely be generated without 
being packaged as a jar that could be submitted. Essentially, I'm 
looking for a portable way of doing [1].

Thanks for any comments or thoughts,

  Jan

[1] https://ardoris.wordpress.com/2014/03/30/how-spark-does-class-loading/