Design Principles: A Discussion on SPI and API
Author: Happy Framework Original: https://www.cnblogs.com/happyframework/p/3325560.html Background My first encounter with SPI was while reading “The Art of Software Framework Design”. Later, I gradually discovered this way of organizing code in JDBC and SpringBoot. Here, I present a thought process on why we should distinguish between SPI and API. Starting from interface-oriented programming We introduced an … Read more