Is invoked by a Loader for notifying that
a class is loaded. The Loader calls
pool.get(classname).toBytecode()
to read the class file after onLoad() returns.
classname may be the name of a class
that has not been created yet.
If so, onLoad() must create that class so that
the Loader can read it after onLoad()
returns.
Parameters: pool - the ClassPool that this translatorshould use. Parameters: classname - the name of the class being loaded. See Also: Loader throws: NotFoundException - if a CtClass cannot be found. throws: CannotCompileException - if the code transformationby this method fails.
|