private static byte [ ] instrumentClassFile ( byte [ ] classfileBuffer ) { String className = new ClassReader ( classfileBuffer ) . getClassName ( ) . replace ( "/" , "." ) ; ClassLoader currentClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; byte [ ] newClassfileBuffer = new EkstaziCFT ( ) . transform ( currentClassLoader , className , null , null , classfileBuffer ) ; return newClassfileBuffer ; }
Support for static instrumentation .