org.jboss.proxy.compiler
Class Runtime

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.jboss.proxy.compiler.Runtime

public class Runtime
extends ClassLoader

Manages bytecode assembly for dynamic proxy generation.

This is the only data needed at runtime.

Version:
$Revision: 57209 $
Author:
Unknown, Jason Dillon

Field Summary
static String RUNTIME_FN
          The field name of the runtime target proxies Runtime object.
 
Constructor Summary
Runtime(ClassLoader parent)
          Construct a new Runtime
 
Method Summary
 Class[] copyTargetTypes()
           
 URL getResource(String name)
          Delegate to the original class loader.
 InputStream getResourceAsStream(String name)
          Delegate to the original class loader.
 Object invoke(InvocationHandler invocationHandler, int methodNum, Object[] values)
           
 Class loadClass(String name, boolean resolve)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNTIME_FN

public static final String RUNTIME_FN
The field name of the runtime target proxies Runtime object.

See Also:
Constant Field Values
Constructor Detail

Runtime

public Runtime(ClassLoader parent)
Construct a new Runtime

Parameters:
parent - The parent classloader to delegate to.
Method Detail

copyTargetTypes

public Class[] copyTargetTypes()

invoke

public Object invoke(InvocationHandler invocationHandler,
                     int methodNum,
                     Object[] values)
              throws Throwable
Throws:
Throwable

loadClass

public Class loadClass(String name,
                       boolean resolve)
                throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

getResourceAsStream

public InputStream getResourceAsStream(String name)
Delegate to the original class loader.

Overrides:
getResourceAsStream in class ClassLoader

getResource

public URL getResource(String name)
Delegate to the original class loader.

Overrides:
getResource in class ClassLoader


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.