@NotStorableClass public final class ClassDefiner extends Object
Constructor and Description |
---|
ClassDefiner(ClassLoaderProvider classLoaderProvider) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
defineClass(String className,
byte[] byteCode)
invoke
ClassLoader#defineClass(String,byte,int,int,ProtectionDomain) |
public ClassDefiner(ClassLoaderProvider classLoaderProvider) throws EnhanceException
EnhanceException
public Class<?> defineClass(String className, byte[] byteCode) throws EnhanceException
ClassLoader#defineClass(String,byte,int,int,ProtectionDomain)
className
- the class namebyteCode
- the code bufferEnhanceException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.