Appendix D. Reflection and dynamic instantiation

Overview

This appendix describes, as succinctly as possible, the use of the Java ‘reflection’ API. While EJB implementations do not usually use reflection extensively, the EJB container does; an understanding of reflection will help to understand why the interaction between the EJBs and the container has the form it does. In addition, with an understanding of reflection you can write some utility programs that will be of use in EJB development. For example, it is not very difficult to write a program that uses reflection to inspect an EJB’s interfaces and generates a template for the implementation class dynamically.

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.