1. A computer implemented method for automatically deploying a class object using byte code instrumentation, the computer implemented method comprising: instrumenting at least one classloader with byte code instrumentation code such that a class loading event is received when a class is loaded; responsive to determining that new byte code instrumentation code needs to be loaded with the loaded class, determining candidate classloaders that load import classes of the new byte code instrumentation code; calculating a correct classloader from the candidate classloaders to load the new byte code instrumentation code; instrumenting the correct classloader to have an extended classpath, wherein the new byte code instrumentation code is inserted into the extended classpath of the correct classloader; and loading the class from the extended classpath and original classpath of the correct classloader.