org.jboss.proxy.compiler
Class ProxyCompiler

java.lang.Object
  extended byorg.jboss.proxy.compiler.ProxyCompiler

public class ProxyCompiler
extends java.lang.Object

Manages bytecode assembly for dynamic proxy generation.


Field Summary
static java.lang.String CLASS_DUMP_PATH
          The path (if non-null) where generated classes will be dumped for debugging.
static java.lang.String IMPL_SUFFIX
          The suffix for proxy implementation classnames.
 
Constructor Summary
ProxyCompiler(java.lang.ClassLoader parent, java.lang.Class superclass, java.lang.Class[] targetTypes, java.lang.reflect.Method[] methods)
          Creates a new ProxyCompiler instance.
 
Method Summary
 byte[] getCode()
          Create the implementation class for the given target.
 java.lang.String getProxyClassName()
           
 java.lang.Class getProxyType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_DUMP_PATH

public static final java.lang.String CLASS_DUMP_PATH
The path (if non-null) where generated classes will be dumped for debugging.


IMPL_SUFFIX

public static final java.lang.String IMPL_SUFFIX
The suffix for proxy implementation classnames.

See Also:
Constant Field Values (src)
Constructor Detail

ProxyCompiler

public ProxyCompiler(java.lang.ClassLoader parent,
                     java.lang.Class superclass,
                     java.lang.Class[] targetTypes,
                     java.lang.reflect.Method[] methods)
              throws java.lang.Exception
Creates a new ProxyCompiler instance.

Parameters:
parent - a ClassLoader value
superclass - a Class value
targetTypes - a Class value
methods - a Method value
Method Detail

getProxyType

public java.lang.Class getProxyType()

getProxyClassName

public java.lang.String getProxyClassName()

getCode

public byte[] getCode()
Create the implementation class for the given target.

Returns:
a byte[] value