Kotlin Reflection
This course will teach you how to use the reflection API for Kotlin and how it can be used to develop a simple Object-Relational Mapping (ORM) library, a model Mapping library, and a Dependency Injection (DI) framework.
What you'll learn
If you've ever wondered what reflection is and what is it used for, or how to build Test Runners or Object-Relational Mapping libraries, then this course is where you need to be. In this course, Kotlin Reflection, you will learn about the Kotlin Reflection API and use it to develop three basic libraries that will be used to refactor a legacy code base. First, you will see how to develop a simple ORM library that constructs basic INSERT and SELECT statements. Then, you will explore how to develop a simple object mapper that maps from database model objects to business model objects, to separate the data access layer from the business layer. Finally, you will learn how to build a simple Dependency Injection (DI) framework that facilitates construction of dependency implements for Web API controllers. By the end of this course, you will have the skills and knowledge of reflection and Kotlin Reflection API needed to build your own libraries.
Table of contents
- Introduction & Overview 1m
- What Is Kotlin Reflection? 5m
- Demo: Overview of Globomantics Legacy Code 3m
- Demo: Implement Basic ORM 7m
- Demo: Supporting INSERT Statements 3m
- Demo: Supporting SELECT Statements 2m
- Demo: Supporting Basic WHERE Clauses 2m
- Demo: Supporting Basic Change Tracking 4m
- Demo: Interoperability with Java Reflection 4m
- Summary 1m