Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

14.3. Reflection

When working with Java, you can use the reflection method to inspect and modify objects within the runtime. It can be added to a piece of code to assist the user in finding terms within the script, adding and modifying parts of it, and invoking applications. It can be used to call services and applications during runtime. It is useful in instances where you need to find the name of a field that you cannot remember or need to modify something efficiently.

Note

Using the reflection method can result in slower loading times and it is sometimes better to simply perform these tasks manually.