org.jboss.byteman.agent
Class Transformer.VerifyLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.jboss.byteman.agent.Transformer.VerifyLoader
Enclosing class:
Transformer

private class Transformer.VerifyLoader
extends java.lang.ClassLoader

classloader used by transformer when verification is switched on to detect errors in transformed bytecode


Constructor Summary
Transformer.VerifyLoader(java.lang.ClassLoader parent)
           
 
Method Summary
 byte[] verify(java.lang.String classname, java.security.ProtectionDomain protectionDomain, byte[] bytes)
          use the supplied bytes to define a class and try creating an instance via the empty constructor printing details of any errors which occur
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformer.VerifyLoader

public Transformer.VerifyLoader(java.lang.ClassLoader parent)
Method Detail

verify

public byte[] verify(java.lang.String classname,
                     java.security.ProtectionDomain protectionDomain,
                     byte[] bytes)
use the supplied bytes to define a class and try creating an instance via the empty constructor printing details of any errors which occur

Parameters:
classname -
protectionDomain -
bytes -
Returns:
the bytes if all goes well otherwise null