Java Fundamentals: The Java Reflection API Method Handles
By Jose Paumard
Course info



Course info



Description
As a Java developer, mastering the reflection API allows you to build powerful frameworks that will bring advanced functionalities to your application. In this course, Java Fundamentals: The Java Reflection API Method Handles, you will learn how you can use reflection API efficiently. This API is very technical, so this course is organized around the study of two real-life use cases: the building of an Object Relational Mapper, on the model of Hibernate, and the creation of a dependency injection framework, on the model of Spring. First, you will understand how to introspect classes and objects and how to discover their structure. Next, you will learn how to build objects without knowing their class at compile time, to set values to their fields and to invoke their methods. Finally, you will understand the performance issues of this API, and be able to use method handles and var handles to fix these issues. By the end of this course, you will be able to master the reflection API that will help you in creating performant and versatile Java applications.
Section Introduction Transcripts
Course Overview
Hello, my name is Jose. I'm a Java Champion and Java Rockstar. I'm talking to you from Paris, and I'm very excited to present my new course, Java Fundamentals: The Java Reflection API and Method Handles. This course shows you how to discover the structure of classes at runtime without knowing them at compile time. You will learn how to create objects; how to set up their fields, even private fields; how to invoke their methods; how to use annotations to add metadata on class elements; and how to read them at runtime. Method handles are also covered for improved performances. I organized this course around two very important real-life use cases. First, you will create a simple object relational mapper on the model of Hibernate, and second, a spring-like dependency injection framework. Before you move on, be sure to be familiar with all these, the Java language, a little bit of lambdas, and the basics of SQL databases and JDBC. The Reflection API is not an easy topic. It is very technical. And I can't wait to see the awesome tools and applications you will be writing after following this course.