Link
The ilfw framework is based on the bottom layer, stacked layer by layer, and provides services at the top layer based on the lower layer, and implements the distributed interfaces to form a complete framework. However, due to time constraints, the aggregation between some providers is high. For example, when applogprovider uses a database as the record media, it has been bound to dataprovider and cannot use a third-party Data Engine.
Ilfw has a total of 18 namespaces that manage the main methods of these providers, as well as various class libraries and interfaces. Each namespace is not independent, as shown in, so if you want to use a provider of ilfw, you may need to introduce several DLL files.
Namespace name list:
Table 1.1 namespace
Ilfw divides every provider into functions, enumeration, and configuration. Every provider is developed in accordance with this contract, and this is also the namespace division rule.
The "function" namespace indicates that the provider's subject completes the task. The "function" namespace includes interfaces, abstract classes, and implementation of these abstract elements. It is the main part of the provider.
The "enumeration" namespace indicates all data types used in the provider to interact with users.
The "configuration" namespace indicates the information that the provider needs to support in the configuration file. Before the provider runs, the system automatically loads the corresponding configuration file and loads the relevant nodes, provide the information in these nodes to the "function" module for processing.
Figure 1.2 namespace Structure
Based on my years of experience, I will reuse more parts in system development and more difficult to control parts in collaborative development, and encapsulate them in an object-oriented manner, to form a business-independent underlying architecture (ilfw), ilfw has the following advantages:
- The layer-3 structure is obviously layered,ProgramEasy to understand and highly scalable.
The core business driver layer of the system and ilfw both adopt the object-oriented Principle Design, and use inheritance, polymorphism, and other methods in combination with interfaces to enhance "Driver scalability ", you only need to inherit from the upper layer or implement related classes or interfaces to extend the existing underlying methods.
- It is modular, flexible, and highly reusable.
Because ilfw abstracts and encapsulates data, storage, and security, the business layer completes related services by configuring relevant nodes and calling methods. Therefore, this method enhances the business layer.CodeIs simple and easy to understand, reducing coupling, implementing the functions of the module or communicating with the module is only achieved by calling the public interface
- Developers can reduce the burden and effort for re-establishing solutions to complex problems.
The operation and maintenance of software products in the later stage is a huge project. It is irrational and unfair to simply consider the development efficiency from the early stage of development. Using the ilfw architecture can improve the development efficiency. Some Complex peripheral control code needs to be processed in a short internal method, even if an error occurs, it will never extend errors to the business logic layer, nor affect the persistence layer.
Ilfw is provided to program personnel in the form of provider. Different providers represent different encapsulation and can complete different tasks. At the same time, each provider also calls each other.
(To be continued)
I amAicken)Welcome to my next articleArticle.