Save This Page
Home » openjdk-7 » java » lang » reflect » [javadoc | source]
java.lang.reflect
final class: VMProxy [javadoc | source]
java.lang.Object
   java.lang.reflect.VMProxy
Field Summary
static  boolean HAVE_NATIVE_GET_PROXY_CLASS    Set to true if the VM provides a native method to implement Proxy.getProxyClass completely, including argument verification. If this is true, HAVE_NATIVE_GET_PROXY_DATA and HAVE_NATIVE_GENERATE_PROXY_CLASS should be false. 
static  boolean HAVE_NATIVE_GET_PROXY_DATA    Set to true if the VM provides a native method to implement the first part of Proxy.getProxyClass: generation of the array of methods to convert, and verification of the arguments. If this is true, HAVE_NATIVE_GET_PROXY_CLASS should be false. 
static  boolean HAVE_NATIVE_GENERATE_PROXY_CLASS    Set to true if the VM provides a native method to implement the second part of Proxy.getProxyClass: conversion of an array of methods into an actual proxy class. If this is true, HAVE_NATIVE_GET_PROXY_CLASS should be false. 
Method from java.lang.reflect.VMProxy Summary:
generateProxyClass,   getProxyClass,   getProxyData
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.reflect.VMProxy Detail:
 static native Class generateProxyClass(ClassLoader loader,
    ProxyData data)
    Optional native method to replace (and speed up) the pure Java implementation of generateProxyClass. Only needed if Configuration.HAVE_NATIVE_GENERATE_PROXY_CLASS is true. The native code may safely assume that a new Class must be created, and that the ProxyData object does not describe any existing class.
 static native Class getProxyClass(ClassLoader loader,
    Class[] interfaces)
    Optional native method to replace (and speed up) the pure Java implementation of getProxyClass. Only needed if VMProxy.HAVE_NATIVE_GET_PROXY_CLASS is true, this does the work of both getProxyData and generateProxyClass with no intermediate form in Java. The native code may safely assume that this class must be created, and does not already exist.
 static native ProxyData getProxyData(ClassLoader loader,
    Class[] interfaces)
    Optional native method to replace (and speed up) the pure Java implementation of getProxyData. Only needed if Configuration.HAVE_NATIVE_GET_PROXY_DATA is true. The native code may safely assume that a new ProxyData object must be created which does not duplicate any existing ones.