CN103970573A - Light application program system for mobile device and program loading system and method thereof - Google Patents
Light application program system for mobile device and program loading system and method thereof Download PDFInfo
- Publication number
- CN103970573A CN103970573A CN201410217125.XA CN201410217125A CN103970573A CN 103970573 A CN103970573 A CN 103970573A CN 201410217125 A CN201410217125 A CN 201410217125A CN 103970573 A CN103970573 A CN 103970573A
- Authority
- CN
- China
- Prior art keywords
- plug
- application program
- configuration file
- unit
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a light application program system for a mobile device and a program loading system and method thereof. The program loading system of the light application program system for the mobile device comprises a configuration file reading device and a program loading device, wherein the configuration file reading device reads a configuration file to obtain plugin information and expansion point information from the configuration file, the program loading device loads the plugin and a core function of an application program according to the configuration file, an expansion point refers to an inference between the plugin and the core function of the application program, and the plugin is used for organizing and maintaining a plurality of expansion functions except the core function of the application program.
Description
Technical field
The present invention relates to field of computer technology and field of mobile equipment, particularly a kind of program loading system and program loading method of the light application program system for mobile device.
Background technology
Present stage, such as the application program on the mobile device such as mobile phone, panel computer is more and more, and existing mobile terminal program function is numerous and diverse, under the program architecture of existing mobile terminal, user is in the time of set up applications, whole app is installed, and installation kit is very large, and causing like this expending user wastes in a large number.
In addition, software function too much also can cause developer to be difficult to maintenance software, and function too much can cause that project is huge and coupling is serious, and developer can and wait for that at project maintenance even summation Development of Module complete the middle consumption plenty of time, greatly reduces development efficiency.
Summary of the invention
Therefore, the object of the invention is to solve existing customer holds user under program architecture cannot select the problem of required function.
According to an aspect of the present invention, provide a kind of program loading system of the light application program system for mobile device, having comprised: configuration file reading device, reads configuration file, to obtain plugin information and extension point information from configuration file; Program charger, carry out the Core Feature of loading of plug-in and application program according to configuration file, wherein, the interface between extension point indication plug unit and the Core Feature of application program, plug-in unit is for organizing and safeguard the multiple expanded functions except the Core Feature of application program.
Described program loading system can also comprise: configuration file modifier, according to user, the selection of plug-in unit is revised to configuration file, and program charger carrys out the Core Feature of loading of plug-in and application program according to the configuration file of amendment subsequently.
Plug-in unit can comprise multiple expansion modules, and each expansion module can a corresponding expanded function.
This program loading system can also comprise: carry device, and for the expansion module that finds of plugin information by obtaining being mounted to extension point that this expansion module realizes under one's name.
According to an aspect of the present invention, provide a kind of program loading method of the light application program system for mobile device, having comprised: read configuration file, to obtain plugin information and extension point information from configuration file; Carry out the Core Feature of loading of plug-in and application program according to configuration file, wherein, the interface between extension point indication plug unit and the Core Feature of application program, plug-in unit is for organizing and safeguard the multiple expanded functions except the Core Feature of application program.
Described program loading method can also comprise: according to user, the selection of plug-in unit is revised to configuration file, carry out subsequently the Core Feature of loading of plug-in and application program according to the configuration file of amendment.
Plug-in unit can comprise multiple expansion modules, and each expansion module can a corresponding expanded function.
This program loading method can also comprise: the expansion module that finds of plugin information by obtaining is mounted to extension point that this expansion module realizes under one's name.
According to an aspect of the present invention, provide a kind of light application program system for mobile device, having comprised: micro core, the Core Feature of carrying application program is also controlled the operation of whole light application program system; Plug-in unit, tissue and the multiple expanded functions of maintenance except the Core Feature of application program; Extension point, records the interface between plug-in unit and Core Feature, and wherein, micro core comprises plug-in management module, and micro core is passed through plug-in management module carry plug-in unit, and carrys out loading of plug-in according to configuration file.
Plug-in management module can comprise: profile management module, read configuration file to obtain plugin information and extension point information from configuration file, and according to user, the selection of plug-in unit is revised to configuration file.
Plug-in management module can also comprise: plug-in unit load-on module, loads selecteed plug-in unit according to the configuration file of amendment.
Plug-in management module can comprise: plug-in download module, is loaded into the function of light application program system with extension application by the plug-in unit obtaining from outside.
By part in ensuing description set forth the present invention other aspect and/or advantage, some will be clearly by descriptions, or can pass through enforcement of the present invention and learning.
Brief description of the drawings
By below in conjunction with accompanying drawing, embodiments of the invention being described, above and other object of the present invention will become apparent, wherein:
Fig. 1 is the schematic block diagram illustrating according to the light application program system for mobile device of the embodiment of the present invention;
Fig. 2 is the process flow diagram illustrating according to the process of the program loading method of the light application program system for mobile device of the embodiment of the present invention;
Fig. 3 is the program realization example illustrating according to the program loading method of the light application program system for mobile device of the embodiment of the present invention;
Fig. 4 is the block diagram illustrating according to the program loading system of the light application program system for mobile device of the embodiment of the present invention.
Embodiment
Fig. 1 is the schematic block diagram illustrating according to the light application program system for mobile device of the embodiment of the present invention.
As shown in Figure 1, comprise according to the light application program system for mobile device of the embodiment of the present invention: micro core 100, micro core 100 comprises plug-in management module 200.Plug-in management module 200 can comprise plug-in download module 2001, plug-in unit load-on module 2002 and profile management module 2003.Respectively above-mentioned each module is described in detail below.
Micro core 100 is carried the Core Feature of application program and can be controlled the operation of whole light application program system.The Core Feature of application program is the major function of application program, and user can use the minimum feature set of this application program.
Plug-in management module 200 is managed multiple plug-in units according to the control of micro core 100, and specifically, micro core 100 can be passed through plug-in management module 200 carry plug-in units, and carrys out loading of plug-in according to configuration file.Wherein, plug-in unit tissue and the multiple expanded functions of maintenance except the Core Feature of application program.As shown in Figure 1, each plug-in unit can comprise multiple expansion modules, the corresponding expanded function of each expansion module.
Profile management module 2003 in plug-in management module 200 can read configuration file to obtain plug-in unit relevant information and extension point relevant information, in the time that user selects plug-in unit, profile management module 2003 can be revised configuration file to the selection of plug-in unit according to user, thereby plug-in unit load-on module 2002 can load the plug-in unit needing according to the configuration file of amendment, further loads expansion module.
Should be appreciated that, configuration file not all will be revised at every turn.That is to say, once user revised configuration file, just acquiescence is each loads amended configuration file, until amendment or user that user cancels configuration file next time revise configuration file again.
For example, can in user interface, show that configuration file supplies user to select the expanded function of needs.Plug-in unit relevant information for example comprises, the expansion module information that plugin name, plug-in version, plug-in unit comprise etc., and extension point relevant information for example comprises, extension point title, extension point version, extendible agreement etc.Wherein, extension point records the interface between plug-in unit and Core Feature.
By recording the interface between plug-in unit and Core Feature, make plug-in unit can be independent of Core Feature, therefore can not affect Core Feature corresponding to loading and the unloading of the expanded function of plug-in unit.
Extension point has externally announced in the mode of agreement the function that the Core Feature of this application program can be expanded, expansion module carrys out extender by realizing with the agreement of extension point agreement, as shown in Figure 1, same extension point can be expanded by multiple expansion modules, and the relation of extension point and expansion module is one-to-many.
Therefore, can manage all plug-in units by configuration file.In the time that moving, program can decide the priority orders which plug-in unit need to be downloaded and loading and plug-in unit load according to configuration file.
The plug-in unit obtaining from outside is loaded into the function of light application program system with extension application by plug-in download module 2001.
For example, in the time that programming personnel has increased new function for certain application program, can be loaded into by plug-in download module 2001 light application program system using the function newly increasing as plug-in unit, to select this new function to install for user after a while.
Fig. 2 is the process flow diagram illustrating according to the process of the program loading method of the light application program system for mobile device of the embodiment of the present invention.
201, read configuration file, to obtain plugin information and extension point information from configuration file.
Plug-in unit is for organizing the multiple expanded functions except Core Feature with maintenance applications.Each plug-in unit can comprise multiple expansion modules, the corresponding expanded function of each expansion module.
Interface between extension point indication plug unit and the Core Feature of application program.The Core Feature of application program is the major function of application program, and user can use the minimum feature set of this application program.
Plug-in unit relevant information for example comprises, the expansion module information that plugin name, plug-in version, plug-in unit comprise etc., and extension point relevant information for example comprises, extension point title, extension point version, extendible agreement etc.
For example, in the time of the light application program system operation for mobile device, this system can start-up loading micro core.In micro core, store the Core Feature of application program.Subsequently, micro core can order plug-in management module read configuration file.In configuration file, store plug-in unit and extension point relevant configuration information.Plug-in management module can load extension point information according to the configuration file reading, and carrys out loading of plug-in information according to the configuration file reading, because plug-in unit comprises multiple expansion modules, and the therefore further extend information in loading of plug-in.Extend information can comprise the extension point that expansion realizes, and the priority of expansion realizes the class name of extension point example.
Plug-in management module can find the extension point that expansion module is realized also this expansion module to be mounted to this extension point under one's name by extend information.
202, carry out the Core Feature of loading of plug-in and application program according to configuration file.
Specifically, micro core is prepared the expansion module in plug-in unit by reading configuration file, obtains corresponding extension point to obtain and to load carry at this extension point expansion module under one's name according to expansion module.For example, micro core can be created the example of expansion module and be carried out extender function with the example of expansion module by reflex mechanism.
Although not shown in Figure 2, this program loading method can also comprise: according to user, the selection of plug-in unit is revised to configuration file.Can carry out according to the configuration file of amendment subsequently the Core Feature of loading of plug-in and application program.
For example, can show the expanded function that Gong the user in configuration file selects to user.Like this, user can select the function that oneself is expected as required.
Fig. 3 is the program realization example illustrating according to the program loading method of the light application program system for mobile device of the embodiment of the present invention.
As shown in Figure 3,301, start according to the light application program system of the embodiment of the present invention, micro core is sent start () order to plug-in management module.
302, plug-in management module is sent getconfig () order to profile management module, reads configuration file.
303, plug-in management module is sent createExtentionPoint () order to extension point module, comes to load extension point information according to configuration file.
304, plug-in management module is sent createPlugin () order to plug-in unit, comes according to configuration file loading of plug-in information.
305, plug-in unit sends createExtension () to expansion module, and with the expanded function in loading of plug-in, expanded function for example comprises the extension point that expanded function realizes, and the priority of expanded function realizes the class name of extension point example.
306, expansion module for example sends addToExtensionPoint () order to extension point module, that is, the extension point that finds expanded function to realize by the description of expanded function, is mounted to this extension point under one's name by this expanded function.
307, micro core is sent getExtensionPointByName () order to plug-in management module,, after user revises configuration file, micro core reads the configuration file of user's amendment and prepares extender, obtain required extension point from plug-in management module, prepare to come by extension point definition agreement the function of extender.
308, extension point module is sent getAllExtensions () order to expansion module, takes all expansion modules of carry under the extension point of needs use and prepares to load.
309, expansion module sends getInstance () to concrete expansion example, creates the example of expansion module by reflex mechanism.
310, micro core is sent useInstance () order to expansion example, carrys out extender function with the example of expansion module.
Fig. 4 is the block diagram illustrating according to the program loading system of the light application program system for mobile device of the embodiment of the present invention.
As shown in Figure 4, this program loading system comprises configuration file reading device 401 program chargers 402.
Configuration file reading device 401 is for reading configuration file, to obtain plugin information and extension point information from configuration file.
Plug-in unit is for organizing the multiple expanded functions except Core Feature with maintenance applications.Each plug-in unit can comprise multiple expansion modules, the corresponding expanded function of each expansion module.
Interface between extension point indication plug unit and the Core Feature of application program.The Core Feature of application program is the major function of application program, and user can use the minimum feature set of this application program.
Plug-in unit relevant information for example comprises, the expansion module information that plugin name, plug-in version, plug-in unit comprise etc., and extension point relevant information for example comprises, extension point title, extension point version, extendible agreement etc.
Configuration file reading device 401 can carry out loading of plug-in information according to configuration file, because plug-in unit comprises multiple expansion modules, and the therefore further extend information in loading of plug-in.Extend information can comprise the extension point that expansion realizes, and the priority of expansion realizes the class name of extension point example.
This program loading system also can comprise carry device (not illustrating in the drawings), and due to the extension point that finds expansion module to realize by extend information, carry device can be mounted to this extension point under one's name by this expansion module.
Program charger 402 carrys out the Core Feature of loading of plug-in and application program according to configuration file.
Specifically, prepare the expansion module in plug-in unit by reading configuration file, obtain corresponding extension point to obtain and to load carry at this extension point expansion module under one's name according to expansion module.
Although not shown in Figure 4, this program loading system can also comprise configuration file modifier, configuration file modifier is for revising configuration file according to user to the selection of plug-in unit.Subsequently, program charger 402 can carry out according to the configuration file of amendment the Core Feature of loading of plug-in and application program.
For example, can show the expanded function that Gong the user in configuration file selects to user.Like this, user can select the function that oneself is expected as required.
By according to program loading system and the method for the light application program system for mobile device of the embodiment of the present invention, by the non-major function outside the Core Feature of application program is divided into plug-in unit, therefore can select to load the plug-in unit needing according to user, reduce like this downloading flow.By recording the extension point of the interface between plug-in unit and Core Feature, make plug-in unit can be independent of Core Feature in addition, therefore can not affect Core Feature corresponding to loading and the unloading of the expanded function of plug-in unit.
Although specifically shown with reference to embodiments of the invention and described the present invention, but it should be appreciated by those skilled in the art, in the case of not departing from the spirit and scope of the present invention that are defined by the claims, can carry out the various changes in form and details to it.
Claims (12)
1. for a program loading system for the light application program system of mobile device, comprising:
Configuration file reading device, reads configuration file, to obtain plugin information and extension point information from configuration file;
Program charger, carrys out the Core Feature of loading of plug-in and application program according to configuration file,
Wherein, the interface between extension point indication plug unit and the Core Feature of application program, plug-in unit is for organizing and safeguard the multiple expanded functions except the Core Feature of application program.
2. program loading system as claimed in claim 1, described program loading system also comprises: configuration file modifier, according to user, the selection of plug-in unit is revised to configuration file, program charger carrys out the Core Feature of loading of plug-in and application program according to the configuration file of amendment subsequently.
3. program loading system as claimed in claim 1, wherein, plug-in unit comprises multiple expansion modules, the corresponding expanded function of each expansion module.
4. program loading system as claimed in claim 3, also comprises: carry device, and for the expansion module that finds of plugin information by obtaining being mounted to extension point that this expansion module realizes under one's name.
5. for a program loading method for the light application program system of mobile device, comprising:
Read configuration file, to obtain plugin information and extension point information from configuration file;
Carry out the Core Feature of loading of plug-in and application program according to configuration file,
Wherein, the interface between extension point indication plug unit and the Core Feature of application program, plug-in unit is for organizing and safeguard the multiple expanded functions except the Core Feature of application program.
6. program loading method as claimed in claim 5, also comprises: according to user, the selection of plug-in unit is revised to configuration file, carry out subsequently the Core Feature of loading of plug-in and application program according to the configuration file of amendment.
7. program loading method as claimed in claim 5, wherein, plug-in unit comprises multiple expansion modules, the corresponding expanded function of each expansion module.
8. program loading method as claimed in claim 7, also comprises:
The expansion module that finds of plugin information by obtaining is mounted to extension point that this expansion module realizes under one's name.
9. for a light application program system for mobile device, comprising:
Micro core, the Core Feature of carrying application program is also controlled the operation of whole light application program system;
Plug-in unit, tissue and the multiple expanded functions of maintenance except the Core Feature of application program;
Extension point, records the interface between plug-in unit and Core Feature,
Wherein, micro core comprises plug-in management module, and micro core is passed through plug-in management module carry plug-in unit, and carrys out loading of plug-in according to configuration file.
10. light application program system as claimed in claim 9, wherein, plug-in management module comprises: profile management module, read configuration file to obtain plugin information and extension point information from configuration file, and according to user, the selection of plug-in unit is revised to configuration file.
11. light application program systems as claimed in claim 10, wherein, plug-in management module also comprises: plug-in unit load-on module, loads selecteed plug-in unit according to the configuration file of amendment.
12. light application program systems as claimed in claim 9, wherein, plug-in management module comprises: plug-in download module, is loaded into the function of light application program system with extension application by the plug-in unit obtaining from outside.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410217125.XA CN103970573A (en) | 2014-05-21 | 2014-05-21 | Light application program system for mobile device and program loading system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410217125.XA CN103970573A (en) | 2014-05-21 | 2014-05-21 | Light application program system for mobile device and program loading system and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103970573A true CN103970573A (en) | 2014-08-06 |
Family
ID=51240110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410217125.XA Pending CN103970573A (en) | 2014-05-21 | 2014-05-21 | Light application program system for mobile device and program loading system and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103970573A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391900A (en) * | 2014-11-11 | 2015-03-04 | 百度在线网络技术(北京)有限公司 | Method and device for searching plugin |
CN104572278A (en) * | 2014-12-22 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for light application to call local end capability |
CN104714828A (en) * | 2015-03-31 | 2015-06-17 | 北京奇虎科技有限公司 | Methods and devices for installing and operating application |
CN105373396A (en) * | 2015-08-14 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Method and device for updating plug-in in plug-in platform |
CN105700881A (en) * | 2016-01-12 | 2016-06-22 | 成都中科合迅科技有限公司 | Application module calling method and device |
CN106096032A (en) * | 2016-06-28 | 2016-11-09 | 天津海量信息技术股份有限公司 | A kind of data digging system |
CN106775734A (en) * | 2016-12-23 | 2017-05-31 | 北京数字天域科技有限责任公司 | A kind of method and apparatus of Andriod system engineerings |
CN108153533A (en) * | 2016-12-02 | 2018-06-12 | 腾讯科技(深圳)有限公司 | The method and apparatus of fabrication and installation program, the installation method of program and device |
CN114546511A (en) * | 2020-11-11 | 2022-05-27 | 华为技术有限公司 | Plug-in management method, system and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030009563A1 (en) * | 1997-07-31 | 2003-01-09 | At&T Corp. | Method for client-side inclusion of data elements |
CN101727490A (en) * | 2009-12-22 | 2010-06-09 | 福建星网锐捷网络有限公司 | Method for realizing page insertion in WEB application and WEB server |
CN102662703A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for loading application program plugins |
-
2014
- 2014-05-21 CN CN201410217125.XA patent/CN103970573A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030009563A1 (en) * | 1997-07-31 | 2003-01-09 | At&T Corp. | Method for client-side inclusion of data elements |
CN101727490A (en) * | 2009-12-22 | 2010-06-09 | 福建星网锐捷网络有限公司 | Method for realizing page insertion in WEB application and WEB server |
CN102662703A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Method and device for loading application program plugins |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391900A (en) * | 2014-11-11 | 2015-03-04 | 百度在线网络技术(北京)有限公司 | Method and device for searching plugin |
CN104572278A (en) * | 2014-12-22 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for light application to call local end capability |
CN104714828A (en) * | 2015-03-31 | 2015-06-17 | 北京奇虎科技有限公司 | Methods and devices for installing and operating application |
CN105373396A (en) * | 2015-08-14 | 2016-03-02 | 腾讯科技(深圳)有限公司 | Method and device for updating plug-in in plug-in platform |
CN105373396B (en) * | 2015-08-14 | 2018-01-05 | 腾讯科技(深圳)有限公司 | Update of plug-in loading method and device in plug-platform |
CN105700881A (en) * | 2016-01-12 | 2016-06-22 | 成都中科合迅科技有限公司 | Application module calling method and device |
CN106096032A (en) * | 2016-06-28 | 2016-11-09 | 天津海量信息技术股份有限公司 | A kind of data digging system |
CN108153533A (en) * | 2016-12-02 | 2018-06-12 | 腾讯科技(深圳)有限公司 | The method and apparatus of fabrication and installation program, the installation method of program and device |
CN106775734A (en) * | 2016-12-23 | 2017-05-31 | 北京数字天域科技有限责任公司 | A kind of method and apparatus of Andriod system engineerings |
CN114546511A (en) * | 2020-11-11 | 2022-05-27 | 华为技术有限公司 | Plug-in management method, system and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103970573A (en) | Light application program system for mobile device and program loading system and method thereof | |
CN103399840B (en) | The outer amending method of the band of a kind of allocation of computer file and computer | |
CN101539885B (en) | Soft ware autonomous air upgrading method of wireless communication module, device and system thereof | |
CN103514010A (en) | Automatic application updates | |
CN104335170A (en) | Cloud application deployment | |
CN102880495A (en) | Mobile terminal and software upgrading method for same | |
CN104254834A (en) | Cloud application deployment portability | |
CN103473141A (en) | Method for out-of-band check and modification of BIOS (basic input/output system) setting options | |
CN104572394A (en) | Process monitoring method and device | |
CN104298512A (en) | OSGi-based (open service gateway initiative) functional unit type integrated development system | |
CN104731706A (en) | Method and apparatus for test management using distributed computing | |
CN105824678A (en) | Method and device for installing operating system | |
CN104104708A (en) | Access method of multiple cloud storage spaces and electronic communication device | |
CN103257852A (en) | Method and device for building development environment of distributed application system | |
CN102842095A (en) | Application program purchasing method and device | |
CN105204871A (en) | Plug-in type development method and device | |
CN104583997A (en) | Global feature library useable with continuous delivery | |
CN105787570A (en) | Inspection system | |
CN110990048A (en) | Method and system for monitoring resource loss of Unity project | |
CN105320558A (en) | Mobile terminal and start method thereof | |
CN101656975B (en) | Wireless sensor network node on-site wireless program updating device and updating method thereof | |
CN104050006A (en) | Updating system and updating method of FPGA | |
CN101751277B (en) | Data processing and addressing methods for use in an electronic apparatus, as well as electronic apparatus | |
CN103500099A (en) | Method for achieving quick software secondary development through expansion points and expansion | |
CN104572275A (en) | Process loading method, process loading device and process loading system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140806 |
|
RJ01 | Rejection of invention patent application after publication |