First, JPF background
The JPF project is the inspiration obtained from the open source project Eclipse Platform. The PLUG-IN architecture in Eclipse is the basic model of JPF. In fact, the purpose of JPF is to reduce the complexity of the PLUG-IN frame in Eclipse, so that it can be in any Local use, but JPF is not one from Eclipse.
Second, what is JPF?
JPF is a plug-in management Framework, but only the interface (specification), different users can perform different implementations according to the actual needs, JPF system structure (Figure 1)
(figure 1)
From (Figure 1), it can be seen that JPF is divided into three main part.
l Plug-in registry saves all metadata of PLUG-IN that has been discovered;
l Path Resolver Location Plug-in position (path);
l Plu-in Manager JPF is activated while operating.
Third, JPF success case
Fourth, why do you use JPF and JPF?
The root principle of object-oriented design is to make the system have sufficient expansion space and improve reuse, and interface programming advocated in Java is through the implementation person and the caller (the caller only knows the implementation of the implementation, it does not matter Details of the detail to improve the flexibility of the program, but this is only enhanced in the class level, and there may be thousands of classes in a large system. When you are designing, you must consider these classes. Category (division module) and define a range of specifications, allowing each module to be easily added to an existing system, and it is easy to interact with other related modules, JPF is like this. One role, JPF describes a range of specifications, as long as you follow this specification, you may be loaded, you may access other modules.