SPI (Serial Peripheral Interface)-based configuration-free multi-data source packaging method and system
The invention discloses a configuration-free multi-data-source packaging method and system based on an SPI (Serial Peripheral Interface), the system is provided with a data source core module, a data source API (Application Program Interface) module and N different database type interfaces for reali...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a configuration-free multi-data-source packaging method and system based on an SPI (Serial Peripheral Interface), the system is provided with a data source core module, a data source API (Application Program Interface) module and N different database type interfaces for realizing different implementations, and the data source core module defines a general data source. Corresponding parameter configurations are set for the data sources of the N different databases, and the configurations can support independent adjustment of each item; according to the loading rule of the SPI, a corresponding implementation class is searched for according to files in services under the META-INF in a jar package; and loading is carried out through ServiceLoader, and interface-oriented programming is carried out, so that the purpose of decoupling is achieved. According to the technology, the SPI is used for decoupling related functions of the database originally managed by the application interior, the un |
---|