Today, I can discuss the Facade design pattern for Lin. Have some experience, now record it.
Facade meaning is the front of the building, that is, a positive interface, the so-called design pattern, what is derived from the building industry, such as design a sharp shape, you can do this, maybe it, maybe The result of the last building is the same. However, if you use some way, such as a process of reinforcing steel, post-concrete, is relatively reasonable. At the end, for a long time, this forms a design pattern that uses it to improve productivity.
FACADE is a module interface. The granularity can be said to be relatively large, can have a Facade between layers and layers, such as JNDI, JDBC is this type of Facade, I don't care about YORACLE, SQL Server, or What is the interface between the database and the basement code, is a facade. For example, in the O / R mapping level, you can use JDO, you can also use Hibernate, and eventually you want two things in this area. Come connect them up.
Software has developed and increasingly layers. Things between layer and layers are like this, there are some fixed interfaces.
There is also a concept of Facade, such as the cost management, bidding, and how do you find a way to get them, relatively independent, and relatively independent. Strong, loosely coupled between modules, which is important.
In fact, I still don't understand Facade, I have the opportunity to study.