org.glassfish.pfl.dynamic.codegen.impl
Class CodeGeneratorUtil

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.CodeGeneratorUtil

public class CodeGeneratorUtil
extends Object

Class used to get a class directly from code generated by a runtime code generator. The code generator extends this base class, and must implement the getClassData method. Most of this is independent of BCEL, but finalizeMethod is specific to the BCEL framework.


Field Summary
static String CONSTRUCTOR_METHOD_NAME
           
static String STATIC_INITIALIZER_METHOD_NAME
           
 
Method Summary
static Class<?> makeClass(String name, byte[] def, ProtectionDomain pd, ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTRUCTOR_METHOD_NAME

public static final String CONSTRUCTOR_METHOD_NAME
See Also:
Constant Field Values

STATIC_INITIALIZER_METHOD_NAME

public static final String STATIC_INITIALIZER_METHOD_NAME
See Also:
Constant Field Values
Method Detail

makeClass

public static Class<?> makeClass(String name,
                                 byte[] def,
                                 ProtectionDomain pd,
                                 ClassLoader loader)


Copyright © 2013 Oracle. All Rights Reserved.