Re: Two questions regarding implementing ModuleFinder

2016-07-29 Thread Andrew Dinn
On 28/07/16 18:03, Alan Bateman wrote: > On 28/07/2016 16:59, Andrew Dinn wrote: > when converting the URI to a URL, we'll get that fixed. Thanks. That's good to know. > But to your question then the module location is used as the CodeSource: > > * This URI, when present, is used as the {@

Re: Two questions regarding implementing ModuleFinder

2016-07-28 Thread Alan Bateman
On 28/07/2016 16:59, Andrew Dinn wrote: : The part I am dubious about here is the URI, in particular the need to provide a scheme (supplied as the String "byteman"). I passed that because I get an error if I simply pass null for the scheme (it complains that this is not an absolute URI). I can

Two questions regarding implementing ModuleFinder

2016-07-28 Thread Andrew Dinn
Hi all, In order to create a module for my agent at runtime I had to provide my own implementations of classes ModuleFinder and ModuleReader. These implementations delegate to the agent in order to retrieve bytecode for a given class contained in the module so they do not themselves rely on a file