D.1. The importance of reflection

Reflection (also called ‘introspection’) is a simple technique, but it is one of the cornerstones of EJB technology. The reflection API allows a Java platform class to obtain information about other classes or instances at runtime. It is reflection that makes it possible, for example, for the EJB container to generate the home object and EJB object for a deployed bean class. It also allows the generation of stubs whose published methods match those of the home and remote interfaces.

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.