On 30/09/16 13:15, Rafael Winterhalter wrote: > Such a library exists already: > http://mvnrepository.com/search?q=byte-buddy-agent
Ok, so problem solved :-) > I do however not share your point of view on this: if there is a valid > use case for self-attachment - Aleksey, you and I already named several > such use cases - why not add convenience, security and performance to > the API? Right now, a library can already self-attach when there is no > security manager but will always expose the Instrumentation instance > accessibly on the system class loader. I am not really sure what you mean by "will always expose the Instrumentation instance accessibly on the system class loader". Are you talking about reflective access from classes loaded by the system class loader? or do you mean something else? regards, Andrew Dinn ----------- Senior Principal Software Engineer Red Hat UK Ltd Registered in England and Wales under Company Registration No. 03798903 Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander