Reflection |
Documentation Contents |
Reflection enables Java code to discover information about the fields, methods and constructors of loaded classes, and to use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions. The API accommodates applications that need access to either the public members of a target object (based on its runtime class) or the members declared by a given class.Performance EnhancementThe JavaTM 2 Platform allows programs to suppress default reflective access control.
Beginning with J2SDK 1.4.0, certain reflective operations, specifically java.lang.reflect.Field, java.lang.reflect.Method.invoke(), java.lang.reflect.Constructor.newInstance(), and Class.newInstance(), have been rewritten for higher performance. Reflective invocations and instantiations are several times faster than in previous releases.Dynamic Proxy Classes
Copyright © 2002
Sun Microsystems, Inc.
All Rights Reserved.
Please send comments to: reflection-comments@eng.sun.com |
Java Software |