reflection : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

reflection
Reflection (the java.lang.reflect package) is primarily for very generic programs such as database browsers or visual code editors. Reflection allows Java code to discover information about the fields, methods and constructors of loaded classes and to dynamically invoke them. Reflection is for dealing with class files you know very little about ahead of time. It would be of interest for example to the author of a BeanBox editor to import various foreign beans.

Here

Reflection has very high overhead. Make sure you can’t solve your problem with a simple interface, Class.forName and a delegate object instead.

Kataba has a way of speeding up reflection 100x to almost the speed of interface calls via dynamic compliation ( JVM (Java Virtual Machine) byte code generation).

Learning More


Oracle’s Javadoc on java.lang.reflect package : available:
Oracle’s Javadoc on Proxy class : available:
introspection
JASM if you want to create class files on the fly
Kataba
on the fly compose, compile and run

This page is posted
on the web at:

http://mindprod.com/jgloss/reflection.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\reflection.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.191.97.229]
You are visitor number