Android-based cross-module interface calling method, medium and equipment
The invention provides a cross-module interface calling method based on Android, a medium and equipment, a client App comprises a basic module and a plurality of function modules, each function module depends on the basic module, and in the compiling stage of the client App, the method comprises the...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
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 provides a cross-module interface calling method based on Android, a medium and equipment, a client App comprises a basic module and a plurality of function modules, each function module depends on the basic module, and in the compiling stage of the client App, the method comprises the steps that each function module abstracts a function used for being called by other modules into an interface, and the interface is used for calling the function; annotating and marking a function corresponding to the interface; and the basic module collects annotation mark information of each functional module, and generates a Class file (including a mapping relation between an interface and a function) based on the annotation mark information, so that any module can call functions of other functional modules. After the basic module initializes the Classfinder class, the function modules can call the functions of each other in a cross-module mode, implementation codes of all services do not need to be added to th |
---|