WO2020135129A1 - Method and device for loading plug-in of application, and terminal - Google Patents

Method and device for loading plug-in of application, and terminal Download PDF

Info

Publication number
WO2020135129A1
WO2020135129A1 PCT/CN2019/125708 CN2019125708W WO2020135129A1 WO 2020135129 A1 WO2020135129 A1 WO 2020135129A1 CN 2019125708 W CN2019125708 W CN 2019125708W WO 2020135129 A1 WO2020135129 A1 WO 2020135129A1
Authority
WO
WIPO (PCT)
Prior art keywords
plug
loading
configuration information
configuration
module
Prior art date
Application number
PCT/CN2019/125708
Other languages
French (fr)
Chinese (zh)
Inventor
刘小锐
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020135129A1 publication Critical patent/WO2020135129A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • Embodiments of the present application provide a method, device, and terminal for loading application plug-ins to solve the problem of poor flexibility caused by the same loading method when loading different plug-ins of the same application program in the related art .
  • the plug-in is a program written by an application program interface that complies with certain specifications, and can only be run under the system platform specified by the program, and cannot be run separately from the specified platform.
  • the plug-in can provide a dynamic expansion capability, so that the application program loads the functions that are not originally part of the application at runtime, and can be dynamically updated and replaced.
  • Step 110 Receive an instruction that triggers plugin loading.
  • a monitoring subsystem may be added to the Android RunTime (ART) system of the mobile phone terminal, and the monitoring subsystem will monitor the running status in ART in real time when a certain When the application tries to start the plug-in for the first time, it will use Android's DexClassloader mechanism to load the plug-in. At this time, the monitoring subsystem will be triggered and the decision subsystem will be notified to make a decision.
  • ART Android RunTime
  • Step 280 Receive a trigger operation for displaying the plug-in configuration interface, and display the plug-in configuration interface.
  • the configuration information of the plug-in is first obtained, and the plug-in can be loaded according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface
  • Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
  • the receiving module 310 is used to receive an instruction that triggers the loading of the plug-in;
  • the obtaining module 320 is used to obtain the configuration information of the plug-in, the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface,
  • the plug-in configuration interface is an interface for configuring all plug-ins of the application;
  • a loading module 330 is configured to load the plug-in according to the configuration information acquired by the acquiring module 320.
  • the configuration information includes a first loading mode and a second loading mode.
  • the first loading method is a method that has a faster loading speed than the second loading method, but occupies more space than the second loading method.
  • the computer program when executed by the processor, the computer program may further perform the following operations: when the plug-in is first started, displaying the plug-in configuration interface; acquiring the pair through the plug-in configuration interface The first loading setting performed by the plug-in; storing the first loading setting in a designated location; obtaining configuration information based on the first loading setting from the designated location; acquiring the configuration of the plugin After the information, the configuration information of the plug-in is written into the XML configuration file in the terminal.
  • the computer program when executed by the processor, it may also perform the following operations: when the number of startups of the plug-in is greater than 1, reading the XML configuration file in the terminal; The configuration information of the plug-in is obtained from the XML configuration file.
  • the configuration information includes a first loading mode and a second loading mode; wherein, the first loading mode is a way to load the plug-in faster than the second loading mode
  • the second loading mode is a way that the space occupied by loading the plug-in is smaller than that of the second loading mode.
  • an embodiment of the present application also provides a non-transitory computer-readable storage medium, where the storage medium is used to store a computer program, and when the computer program is executed by a processor, any kind of loading provided by the embodiment of the present invention is implemented. Steps in the method of applying the plug-in. For example, when the computer program is executed by the processor, the following operations are performed: receiving an instruction that triggers the loading of the plug-in; acquiring configuration information of the plug-in, which is generated based on the loading setting of the plug-in on the plug-in configuration interface
  • the plug-in configuration interface is an interface for configuring all plug-ins of the application; according to the configuration information, the plug-in is loaded.
  • the computer readable storage medium provided by the embodiment of the present application will first obtain the configuration information of the plug-in after receiving the instruction that triggers the loading of the plug-in, and may load the plug-in according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
  • the memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in a computer-readable medium, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory

Abstract

A method and device for loading a plug-in of an application, and a terminal, relating to the field of computers. The method may comprise: receiving an instruction for triggering the loading of a plug-in (110); obtaining configuration information of the plug-in, the configuration information being generated based on loading settings of the plug-in on a plug-in configuration interface, and the plug-in configuration interface being an interface for configuring all plug-ins of the application (120); and loading the plug-in according to the configuration information (130).

Description

加载应用的插件的方法、装置和终端Method, device and terminal for loading application plug-in
交叉引用cross reference
本发明要求在2018年12月25日提交中国专利局、申请号为201811595293.7、发明名称为“加载应用的插件的方法、装置和终端”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention requires the priority of the Chinese patent application filed on December 25, 2018 in the Chinese Patent Office with the application number 201811595293.7 and the invention titled "Method, Device and Terminal for Loading Application Plug-ins". The entire content of this application is cited by reference Incorporated in the invention.
技术领域Technical field
本发明涉及计算机领域,尤其涉及一种加载应用的插件的方法、装置和终端。The invention relates to the field of computers, and in particular to a method, device and terminal for loading application plug-ins.
背景技术Background technique
随着智能手机的普及和应用程序功能的日益强大,对于一些大型应用程序,目前引入了基于插件的开发方式。With the popularity of smart phones and the increasingly powerful application functions, plug-in-based development methods are currently introduced for some large-scale applications.
基于插件的开发方式由于插件的易于管理性以及在升级时无需用户重新安装插件的安装包等优点,深受广大用户的青睐。The plug-in-based development method is favored by the majority of users because of its ease of management and the need to reinstall the plug-in installation package during upgrade.
在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式,这种加载方式的灵活性较差。In the related art, the same loading method is used when loading different plug-ins of the same application program, and the flexibility of this loading method is poor.
发明内容Summary of the invention
本申请实施例提供一种加载应用的插件的方法、装置和终端,以解决在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式而导致灵活性较差的问题。Embodiments of the present application provide a method, device, and terminal for loading application plug-ins to solve the problem of poor flexibility caused by the same loading method when loading different plug-ins of the same application program in the related art .
第一方面,本申请实施例提供了一种加载应用的插件的方法,包括:接收触发插件加载的指令;获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;根据所述配置信息,对所述插件进行加载。In a first aspect, an embodiment of the present application provides a method for loading a plug-in of an application, including: receiving an instruction that triggers the loading of a plug-in; acquiring configuration information of the plug-in, the configuration information is based on the configuration of the plug-in configuration interface Generated by loading settings of the plug-in, the plug-in configuration interface is an interface for configuring all plug-ins of the application; according to the configuration information, the plug-in is loaded.
第二方面,本申请实施例提供了一种加载应用的插件的装置,包括:接收模块,用于接收触发插件加载的指令;获取模块,用于获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;加载模块,用于根据所述获取模块获取的所述配置信息,对所述插件进行加载。In a second aspect, an embodiment of the present application provides an apparatus for loading a plug-in for an application, including: a receiving module for receiving an instruction that triggers the loading of a plug-in; an acquiring module for acquiring configuration information of the plug-in, the configuration information It is generated based on the loading settings of the plug-in on the plug-in configuration interface. The plug-in configuration interface is an interface for configuring all plug-ins of the application; a loading module is used to obtain the configuration according to the acquisition module Information to load the plug-in.
第三方面,本申请实施例提供了一种终端,包括:存储器和处理器,所述存储器上存储计算机程序,当所述计算机程序被执行时,实现第一方面所述的加载应用的插件的方法中的步骤。In a third aspect, an embodiment of the present application provides a terminal, including: a memory and a processor, a computer program is stored on the memory, and when the computer program is executed, the plug-in for loading an application described in the first aspect is implemented Steps in the method.
第四方面,本申请实施例提供了非临时性计算机可读存储介质,所述存储介质上存储计算机程序,当所述计算机程序被执行时,实现第一方面所述的加载应用的插件的方法中的步骤。According to a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium that stores a computer program, and when the computer program is executed, implements the method for loading an application plug-in described in the first aspect Steps.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are the embodiments described in the present invention. For those of ordinary skill in the art, without paying any creative labor, other drawings can also be obtained based on these drawings.
图1为本发明实施例提供的一种加载应用的插件的方法的流程图;1 is a flowchart of a method for loading an application plug-in provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种加载应用的插件的方法的流程图;2 is a flowchart of another method for loading an application plug-in provided by an embodiment of the present invention;
图3为本发明实施例提供的一种加载应用的插件的装置的结构框图;3 is a structural block diagram of an apparatus for loading an application plug-in provided by an embodiment of the present invention;
图4为本发明实施例提供的终端的结构示意图。4 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描 述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例中,需了解的是,应用即表示应用程序。In the embodiments of the present invention, it should be understood that an application means an application program.
需了解的是,在下文描述中,如果提及安卓系统仅是表示以安卓系统为例进行举例说明,而并非限制,本发明实施例提供的加载应用的插件的方法也可以应用于其他操作系统,例如苹果操作系统(iOS)。It should be understood that in the following description, if the Android system is mentioned, it only means that the Android system is used as an example for illustration, not limitation, and the method for loading an application plug-in provided by an embodiment of the present invention can also be applied to other operating systems. , Such as Apple's operating system (iOS).
本发明实施例中,插件是一种遵循一定规范的应用程序接口编写出来的程序,只能运行在程序规定的系统平台下,而不能脱离指定的平台单独运行。也就是说,插件可以提供一种动态扩展能力,使得应用程序在运行时加载原本不属于该应用的功能,并且做到动态更新和替换。In the embodiment of the present invention, the plug-in is a program written by an application program interface that complies with certain specifications, and can only be run under the system platform specified by the program, and cannot be run separately from the specified platform. In other words, the plug-in can provide a dynamic expansion capability, so that the application program loads the functions that are not originally part of the application at runtime, and can be dynamically updated and replaced.
在安卓(Android)中,插件式开发就是把一些核心复杂依赖度高的业务模块封装成独立的插件,然后根据不同业务需求进行不同组合,动态进行替换,可对插件进行管理、更新,后期对插件也可进行版本管理等操作。In Android, plug-in development is to encapsulate some core complex and highly dependent business modules into independent plug-ins, and then combine them according to different business needs, dynamically replace them, and manage and update the plug-ins. The plugin can also perform version management and other operations.
以下结合附图,详细说明本发明各实施例提供的技术方案。The technical solutions provided by the embodiments of the present invention will be described in detail below in conjunction with the drawings.
下面将从终端的角度,对本发明实施例提供的加载应用的插件的方法进行介绍。其中,所述终端可以为手机、平板电脑等。图1是本发明实施例提供的一种加载应用的插件的方法的流程图。参照图1,本发明实施例提供的一种加载应用的插件的方法的流程图可包括以下步骤。The method of loading an application plug-in provided by an embodiment of the present invention will be described below from the perspective of a terminal. Wherein, the terminal may be a mobile phone, a tablet computer or the like. FIG. 1 is a flowchart of a method for loading an application plug-in provided by an embodiment of the present invention. Referring to FIG. 1, a flowchart of a method for loading an application plug-in provided by an embodiment of the present invention may include the following steps.
步骤110,接收触发插件加载的指令。Step 110: Receive an instruction that triggers plugin loading.
在本发明实施例中,在例如由用户点击终端上安装的某一应用(例如微信等)的插件时,即可接收到触发插件加载的指令。以微信为例,微信上的插件可包括位于“我”-“我的钱包”-“第三方服务”中的多个插件。用户点击其中的某一个插件,终端即可接收到触发该插件加载的指令。In the embodiment of the present invention, when a user clicks on a plug-in of an application (such as WeChat, etc.) installed on the terminal, for example, an instruction that triggers the loading of the plug-in may be received. Taking WeChat as an example, the plug-ins on WeChat may include multiple plug-ins located in "I"-"My Wallet"-"Third Party Service". When the user clicks on one of the plug-ins, the terminal can receive an instruction that triggers the loading of the plug-in.
在步骤110之后,终端可执行以下动态加载过程:把插件的可执行文件(.so/dex/jar/apk等)拷贝到应用的内部;加载可执行文件,并更换静态资 源;调用具体的方法执行业务逻辑。After step 110, the terminal can perform the following dynamic loading process: copy the executable file of the plug-in (.so/dex/jar/apk, etc.) to the inside of the application; load the executable file and replace the static resource; call a specific method Perform business logic.
本发明实施例提供的加载应用的插件的方法主要是对加载可执行文件,并更换静态资源的过程进行改进。其中,静态资源可以为插件在运行过程中可能被调用到的资源。静态资源可例如涉及插件的图片和/或预编译的库等。The method for loading an application plug-in provided by an embodiment of the present invention is mainly to improve the process of loading an executable file and replacing static resources. Among them, the static resource may be a resource that the plug-in may be called during the running process. Static resources may for example involve pictures of plug-ins and/or pre-compiled libraries, etc.
步骤120,获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面。Step 120: Obtain configuration information of the plug-in. The configuration information is generated based on loading settings of the plug-in on the plug-in configuration interface. The plug-in configuration interface is an interface for configuring all plug-ins of the application.
其中,步骤120可以在加载可执行文件的过程中执行。Among them, step 120 may be executed during the loading of the executable file.
在本发明实施例中,插件配置界面中也可以只涵盖对已加载过的插件的配置。插件配置界面中可包括各种加载选项,例如加载方式选项等。In the embodiment of the present invention, the plug-in configuration interface may also only cover the configuration of the loaded plug-in. The plugin configuration interface may include various loading options, such as loading method options.
在本发明实施例中,可以通过多种方式获取插件的配置信息。举例而言,在插件首次启动的情况下,可以先确认用户在插件启动之前是否有通过插件配置界面对所述插件进行配置。如果用户在插件启动之前没有通过插件配置界面对所述插件进行配置,则可按照默认方式获取插件的配置信息;如果用户在插件启动之前有通过插件配置界面对所述插件进行配置,则可从指定位置获取通过所述插件配置界面对所述插件进行的加载设置。In the embodiment of the present invention, the configuration information of the plug-in can be obtained in various ways. For example, when the plug-in is started for the first time, it may be confirmed whether the user has configured the plug-in through the plug-in configuration interface before the plug-in is started. If the user does not configure the plug-in through the plug-in configuration interface before the plug-in is started, the configuration information of the plug-in can be obtained by default; if the user configures the plug-in through the plug-in configuration interface before the plug-in is started, the user can select from Obtain loading settings for the plug-in through the plug-in configuration interface at a designated location.
在本发明实施例中,如果用户在插件启动之前有通过插件配置界面对所述插件进行配置,则可通过所述插件配置界面对所述插件进行设置,并将得到的加载设置(第一加载设置)存放在指定位置,以供后续访问。在步骤110获取到插件的配置信息之后,可以将所述插件的配置信息写入终端中的可扩展标记语言(eXtensible Markup Language,XML)配置文件中。在本发明实施例中,可以采用一个XML配置文件存储终端上所有插件的配置信息。后续,通过读取XML配置文件,即可获取对应插件的配置信息。In the embodiment of the present invention, if the user configures the plug-in through the plug-in configuration interface before the plug-in starts, the plug-in can be set through the plug-in configuration interface, and the obtained load settings (the first load Settings) are stored in designated locations for subsequent access. After obtaining the configuration information of the plug-in in step 110, the configuration information of the plug-in may be written into an extensible markup language (eXtensible Markup Language, XML) configuration file in the terminal. In the embodiment of the present invention, an XML configuration file may be used to store configuration information of all plug-ins on the terminal. Subsequently, the configuration information of the corresponding plug-in can be obtained by reading the XML configuration file.
在插件不是首次启动的情况下,可读取所述终端中的XML配置文件;并从所述XML配置文件中获取所述插件的配置信息。When the plug-in is not started for the first time, it can read the XML configuration file in the terminal; and obtain the configuration information of the plug-in from the XML configuration file.
步骤130,根据所述配置信息,对所述插件进行加载。Step 130: Load the plug-in according to the configuration information.
在本发明实施例中,所述配置信息可包括第一加载方式和第二加载方式。其中,所述第一加载方式例如可以为对所述插件进行加载的速度比所述第二加载方式更快的方式;所述第二加载方式例如可以为对所述插件加载所占用的空间比所述第一加载方式更小的方式。所述第一加载方式例如可以为加速(speed)方式,所述第二加载方式开为快速(quicken)方式。In this embodiment of the present invention, the configuration information may include a first loading mode and a second loading mode. The first loading method may be, for example, a method of loading the plug-in faster than the second loading method; the second loading method may be, for example, a ratio of space occupied by loading the plug-in The first loading mode is a smaller mode. The first loading mode may be, for example, a speed mode, and the second loading mode may be a quick mode.
在本申请的实施例中,在接收到触发插件加载的指令之后,会先获取所述插件的配置信息,并可根据所述配置信息,对所述插件进行加载。由于所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,且所述插件配置界面为对所述应用的所有插件进行配置的界面,故而通过插件配置界面可以对同一个应用的各个插件分别进行配置,从而可实现对各个插件按不同的方式进行加载,如此,保证了同一个应用的不同插件具有多种加载方式,灵活性较高,解决了在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式而导致灵活性较差的问题。In the embodiment of the present application, after receiving the instruction that triggers the loading of the plug-in, the configuration information of the plug-in is first obtained, and the plug-in can be loaded according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
在本发明的一个实施例中,在步骤110中所述接收触发插件加载的指令之后,本发明实施例提供的加载应用的插件的方法还可包括:显示用于提示是否对所述插件进行优化的信息;接收用于对所述插件进行优化的指令。相应地,步骤120中所述获取所述插件的配置信息包括:在接收到用于对所述插件进行优化的指令的情况下,获取所述插件的配置信息。In an embodiment of the present invention, after receiving the instruction that triggers the loading of the plug-in in step 110, the method for loading a plug-in of an application provided by the embodiment of the present invention may further include: displaying a prompt for whether to optimize the plug-in Information; receive instructions for optimizing the plug-in. Correspondingly, obtaining the configuration information of the plug-in in step 120 includes acquiring configuration information of the plug-in when receiving an instruction for optimizing the plug-in.
其中,用于提示是否对所述插件进行优化的信息可以为“是否对本插件进行优化”。显示的形式可以以文本框的形式,也可以以图片的形式。显示界面中可包括是和否两个选项。当用户选择是时,即可接收到对所述插件进行优化的指令。当用户选择否时,可接收到对所述插件不进行优化的指令。在接收到对所述插件不进行优化的指令的情况下,可按照传统的加载方式进行加载;在接收到用于对所述插件进行优化的指令的情况下,可获取所述插件的配置信息。The information for prompting whether to optimize the plug-in may be "whether to optimize the plug-in". The display can be in the form of a text box or a picture. The display interface may include two options, yes and no. When the user selects Yes, an instruction to optimize the plug-in can be received. When the user selects No, an instruction to not optimize the plug-in may be received. When receiving the instruction not to optimize the plug-in, it can be loaded according to the traditional loading method; when receiving the instruction to optimize the plug-in, the configuration information of the plug-in can be obtained .
本发明实施例通过显示用于提示是否对所述插件进行优化的信息,可以 更好地根据用户的需求实现对插件加载方式的优化,如此能够更好地满足用户的需求。In the embodiment of the present invention, by displaying information for prompting whether to optimize the plug-in, the loading method of the plug-in can be optimized according to the user's needs, so that the user's needs can be better met.
在本发明实施例中,步骤120中获取所述插件的配置信息可以适用于插件首次启动和非首次启动的情形。In the embodiment of the present invention, acquiring the configuration information of the plug-in in step 120 may be applicable to the case where the plug-in is started for the first time and not for the first time.
在本发明的一个实施例中,在插件首次启动的情况下,在步骤110所述接收触发插件加载的指令之前,本发明实施例提供的加载应用的插件的方法还可包括:显示所述插件配置界面;获取通过所述插件配置界面对所述插件进行的第一加载设置;将所述第一加载设置存放于一指定位置。相应地,步骤110中所述获取所述插件的配置信息包括:从所述指定位置,获取基于所述第一加载设置而得到的配置信息。在获取所述插件的配置信息之后,还可将所述插件的所述配置信息写入所述终端中的XML配置文件中。In an embodiment of the present invention, in the case where the plug-in is first started, before receiving the instruction that triggers the loading of the plug-in in step 110, the method for loading a plug-in of an application provided by an embodiment of the present invention may further include: displaying the plug-in Configuration interface; obtaining the first loading setting for the plug-in through the plug-in configuration interface; storing the first loading setting in a designated location. Correspondingly, obtaining the configuration information of the plug-in in step 110 includes: obtaining the configuration information obtained based on the first loading setting from the specified location. After acquiring the configuration information of the plug-in, the configuration information of the plug-in may also be written into an XML configuration file in the terminal.
本发明实施例可通过插件配置界面实现对插件首次启动方式的设置,如此扩大了插件设置的范围,可以进一步插件设置的灵活性,更好地满足用户需求。In the embodiment of the present invention, the first startup mode of the plug-in can be set through the plug-in configuration interface, so the range of the plug-in setting is expanded, and the flexibility of the plug-in setting can be further improved to better meet user needs.
在本发明的一个实施例中,在插件非首次启动的情况下,终端的XML配置文件中已包含插件的配置信息,此时通过读取XML配置文件即可获取插件的配置信息。具体地,在此情况下,步骤120中所述获取所述插件的配置信息可包括:在所述插件的启动次数大于1的情况下,读取所述终端中的XML配置文件;从所述XML配置文件中获取所述插件的配置信息。In an embodiment of the present invention, when the plug-in is not started for the first time, the XML configuration file of the terminal already contains the configuration information of the plug-in. At this time, the configuration information of the plug-in can be obtained by reading the XML configuration file. Specifically, in this case, the acquiring the configuration information of the plug-in in step 120 may include: reading the XML configuration file in the terminal when the number of times the plug-in is activated is greater than one; The configuration information of the plug-in is obtained from the XML configuration file.
本发明实施例提供的加载应用的插件的方法,通过读取XML配置文件可以便捷地获取当前插件的配置信息,进而可基于获取的配置信息所指示的加载方式,对所述插件进行加载。后续在需要修改插件的加载方式时,可以通过插件配置界面修改插件的加载方式,进而可据此进一步修改XML配置文件中插件的配置信息。The method for loading a plug-in of an application provided by an embodiment of the present invention can easily obtain the configuration information of the current plug-in by reading an XML configuration file, and then load the plug-in based on the loading mode indicated by the obtained configuration information. Later, when the loading method of the plug-in needs to be modified, the loading method of the plug-in can be modified through the plug-in configuration interface, and the configuration information of the plug-in in the XML configuration file can be further modified accordingly.
在本发明的一个实施例中,在步骤130中对所述插件进行加载之后,在需要修改插件的加载方式的情况下,可以通过插件配置界面对插件的加载方 式进行修改。具体地,在步骤130之后,本发明实施例提供的加载应用的插件的方法还可包括;显示所述插件配置界面;获取通过所述插件配置界面对所述插件进行的第二加载设置;基于所述第二加载设置,更新所述终端中XML配置文件中所述插件的配置信息。In an embodiment of the present invention, after the plug-in is loaded in step 130, in a case where the plug-in loading mode needs to be modified, the plug-in loading method may be modified through the plug-in configuration interface. Specifically, after step 130, the method for loading a plug-in of an application provided by an embodiment of the present invention may further include; displaying the plug-in configuration interface; obtaining a second loading setting for the plug-in through the plug-in configuration interface; based on The second loading setting updates configuration information of the plug-in in the XML configuration file in the terminal.
在本发明实施例中,在插件加载之后,用户可通过插件配置界面对当前插件的加载方式进行修改,终端可获取到通过所述插件配置界面对所述插件进行的加载设置(第二加载设置),并可根据获取的加载设置更新XML配置文件中当前插件的配置信息。举例而言,用户可通过插件配置界面对插件A的加载方式例如从快速修改为加速,进而终端可将XML配置文件中所述插件的配置信息中包含的加载方式从快速修改为加速,如此此插件下一次加载时通过读取XML配置文件即可直接安装加速的方式进行加载。In the embodiment of the present invention, after the plug-in is loaded, the user can modify the loading method of the current plug-in through the plug-in configuration interface, and the terminal can obtain the loading setting of the plug-in through the plug-in configuration interface (second loading setting) ), and can update the configuration information of the current plug-in in the XML configuration file according to the obtained loading settings. For example, the user can load the plug-in A through the plug-in configuration interface, for example, from quick modification to acceleration, and then the terminal can modify the loading method included in the configuration information of the plug-in in the XML configuration file from quick modification to acceleration. The next time the plugin is loaded, it can be installed directly and accelerated by reading the XML configuration file.
本发明实施例通过插件配置界面可以实现在插件加载后对插件的下一次加载方式进行灵活配置,从而可以更好地满足用户需求。In the embodiment of the present invention, the plug-in configuration interface can be used to flexibly configure the next loading mode of the plug-in after the plug-in is loaded, so as to better meet user needs.
图2是本发明实施例提供的一种加载应用的插件的方法的流程图。参照图2,本发明实施例提供的加载应用的插件的方法可包括以下步骤。2 is a flowchart of a method for loading an application plug-in provided by an embodiment of the present invention. Referring to FIG. 2, the method for loading an application plug-in provided by an embodiment of the present invention may include the following steps.
步骤210,接收触发插件加载的指令。Step 210: Receive an instruction that triggers the loading of the plug-in.
在本发明实施例中,在用户点击应用的某一插件时,终端即可接收触发插件加载的指令。In the embodiment of the present invention, when the user clicks on a certain plug-in of the application, the terminal can receive an instruction that triggers the loading of the plug-in.
步骤220,显示用于提示是否对所述插件进行优化的信息,并确定是否对所述插件进行优化。如果不对所述插件进行优化,执行步骤222;如果对所述插件进行优化,执行步骤230以及后续的步骤。 Step 220, displaying information for prompting whether to optimize the plug-in, and determining whether to optimize the plug-in. If the plug-in is not optimized, step 222 is performed; if the plug-in is optimized, step 230 and subsequent steps are performed.
在本发明实施例中,以手机为例,可在手机终端的安卓运行时间(Android RunTime,ART)系统中添加了一个监控子系统,该监控子系统会实时监控ART中运行状态,当某个应用试图首次启动插件时,会使用安卓的DexClassloader机制进行插件的加载,此时监控子系统会被触发,会通知判定子系统进行判定。In the embodiment of the present invention, taking a mobile phone as an example, a monitoring subsystem may be added to the Android RunTime (ART) system of the mobile phone terminal, and the monitoring subsystem will monitor the running status in ART in real time when a certain When the application tries to start the plug-in for the first time, it will use Android's DexClassloader mechanism to load the plug-in. At this time, the monitoring subsystem will be triggered and the decision subsystem will be notified to make a decision.
判定子系统在收到监控子系统的通知后,可使用在活动管理服务(Activity Manage Service,AMS)中提供的公开接口,获取当前正在启动的应用名称,弹出提示给用户,让用户选择是否愿意将即将启动的插件进行优化,让应用的启动速度加快。优化过程中可能会增大部分存储空间的占用。After the determination subsystem receives the notification from the monitoring subsystem, it can use the public interface provided in the Activity Management Service (AMS) to obtain the name of the currently started application, and pop up a prompt to the user to let the user choose whether to be willing Optimize the plug-in that will be launched soon, so that the startup speed of the application is accelerated. Some storage space may be increased during the optimization process.
步骤222,对插件按原有的加载方式进行加载。Step 222: Load the plug-in according to the original loading method.
当用户选择不需要对该插件进行优化时,可直接进入非优化加载模式,插件的加载方式,例如默认为快速(quicken)方式,插件正常启动。When the user chooses not to optimize the plug-in, he can directly enter the non-optimized loading mode. The loading method of the plug-in is, for example, the quick mode by default, and the plug-in starts normally.
步骤230,接收用于对所述插件进行优化的指令。Step 230: Receive an instruction for optimizing the plug-in.
当用户选择需要对该插件进行优化时,可进行插件的加载优化过程,例如执行步骤240以及后续步骤。When the user selects that the plug-in needs to be optimized, the plug-in loading optimization process may be performed, for example, step 240 and subsequent steps are performed.
步骤240,确定所述插件是否为首次启动。Step 240: Determine whether the plug-in is started for the first time.
步骤250,在所述插件首次启动的情况下,从指定位置获取所述插件的配置信息,并将配置信息写入终端中的XML配置文件中。Step 250: When the plug-in is started for the first time, obtain the configuration information of the plug-in from the specified location, and write the configuration information into the XML configuration file in the terminal.
其中,指定位置的配置信息为在步骤210之前在指定位置预先存放的配置信息。具体地,在步骤210之前,终端可根据用户需求(例如根据用户的用于显示插件配置界面的触发操作),显示插件配置界面,获取通过所述插件配置界面对所述插件进行的第一加载设置,并将所述第一加载设置存放于所述指定位置。其中,所述插件配置界面为对所述应用的所有插件进行配置的界面。The configuration information of the designated location is the configuration information stored in the designated location before step 210. Specifically, before step 210, the terminal may display the plug-in configuration interface according to user needs (for example, according to the user's trigger operation for displaying the plug-in configuration interface), and obtain the first loading of the plug-in through the plug-in configuration interface Setting, and storing the first loading setting in the designated location. Wherein, the plug-in configuration interface is an interface for configuring all plug-ins of the application.
在本发明实施例中,插件配置界面可以为已经启动过的有插件功能的应用查看入口,通过该入口可以查看终端(例如手机)上已经加载过的插件,并且可以动态进行插件的管理和配置。同时,插件配置界面也允许用户对没有优化过的插件进行再次优化。In the embodiment of the present invention, the plug-in configuration interface may view an entry for an already started application with a plug-in function, through which the plug-in that has been loaded on the terminal (such as a mobile phone) can be viewed, and the plug-in management and configuration can be dynamically performed . At the same time, the plug-in configuration interface also allows users to re-optimize plug-ins that have not been optimized.
步骤260,在所述插件非首次启动的情况下,读取所述终端中的XML配置文件,从所述XML配置文件中获取所述插件的配置信息。Step 260: When the plug-in is not started for the first time, read an XML configuration file in the terminal, and obtain configuration information of the plug-in from the XML configuration file.
步骤270,根据获取的所述配置信息,对所述插件进行加载。Step 270: Load the plug-in according to the obtained configuration information.
所述配置信息包括第一加载方式和第二加载方式。其中,所述第一加载方式为加载速度比所述第二加载方式更快,但占用空间比所述第二加载方式更多的方式。The configuration information includes a first loading mode and a second loading mode. Wherein, the first loading method is a method that has a faster loading speed than the second loading method, but occupies more space than the second loading method.
步骤280,接收用于显示插件配置界面的触发操作,显示所述插件配置界面。Step 280: Receive a trigger operation for displaying the plug-in configuration interface, and display the plug-in configuration interface.
其中,插件配置界面可提供对已经启动过的有插件功能的应用查看入口,通过该入口,可以查看终端(手机)上已经加载过的插件,并且可以动态进行插件的管理和配置,允许用户对没有优化过的插件进行再次优化。当用户对启动过的插件进行优化时,可以修改已经存储的XML配置文件(例如packages.xml)中的该插件的配置信息,并可记录下用户对该插件的配置。当用户下次再启动该插件,进行例如DexClassloader加载时,可重新对该插件进行优化,优化方式例如为加速(speed)模式。Among them, the plug-in configuration interface can provide a portal for viewing applications that have been started with plug-in functions. Through this portal, you can view the plug-ins that have been loaded on the terminal (mobile phone), and can dynamically manage and configure the plug-in, allowing users to Plug-ins that have not been optimized are optimized again. When the user optimizes the started plug-in, it can modify the configuration information of the plug-in in the XML configuration file (such as packages.xml) that has been stored, and can record the user's configuration of the plug-in. When the user starts the plug-in again next time, for example, when loading the DexClassloader, the plug-in can be optimized again, for example, the optimization mode is speed mode.
步骤290,获取通过所述插件配置界面对所述插件进行的第二加载设置,基于所述第二加载设置,更新所述终端中XML配置文件中所述插件的配置信息。Step 290: Obtain the second loading setting for the plugin through the plugin configuration interface, and update the configuration information of the plugin in the XML configuration file in the terminal based on the second loading setting.
在本申请的实施例中,在接收到触发插件加载的指令之后,会先获取所述插件的配置信息,并可根据所述配置信息,对所述插件进行加载。由于所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,且所述插件配置界面为对所述应用的所有插件进行配置的界面,故而通过插件配置界面可以对同一个应用的各个插件分别进行配置,从而可实现对各个插件按不同的方式进行加载,如此,保证了同一个应用的不同插件具有多种加载方式,灵活性较高,解决了在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式而导致灵活性较差的问题。In the embodiment of the present application, after receiving the instruction that triggers the loading of the plug-in, the configuration information of the plug-in is first obtained, and the plug-in can be loaded according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
本发明实施例中通过允许用户通过插件配置界面对应用插件的优化进行配置,达到了对用户关注插件的启动优化,从而可以加快插件的启动速度,进而也可加快应用在启动插件这个过程的切换速度,提升了用户体验。In the embodiment of the present invention, by allowing the user to configure the optimization of the application plug-in through the plug-in configuration interface, the startup optimization of the user-focused plug-in is achieved, which can speed up the startup speed of the plug-in, and thus also can accelerate the switching of the application in the process of starting the plug-in Speed improves user experience.
图3是本发明实施例提供的一种加载应用的插件的装置的结构框图。参照图3,本发明实施例提供的一种加载应用的插件的装置300可包括:接收模块310、获取模块320和加载模块330。其中:接收模块310,用于接收触发插件加载的指令;获取模块320,用于获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;加载模块330,用于根据所述获取模块320获取的所述配置信息,对所述插件进行加载。FIG. 3 is a structural block diagram of an apparatus for loading an application plug-in provided by an embodiment of the present invention. Referring to FIG. 3, an apparatus 300 for loading an application plug-in provided by an embodiment of the present invention may include: a receiving module 310, an obtaining module 320, and a loading module 330. Wherein: the receiving module 310 is used to receive an instruction that triggers the loading of the plug-in; the obtaining module 320 is used to obtain the configuration information of the plug-in, the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, The plug-in configuration interface is an interface for configuring all plug-ins of the application; a loading module 330 is configured to load the plug-in according to the configuration information acquired by the acquiring module 320.
本申请实施例提供的加载应用的插件的装置,在接收到触发插件加载的指令之后,会先获取所述插件的配置信息,并可根据所述配置信息,对所述插件进行加载。由于所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,且所述插件配置界面为对所述应用的所有插件进行配置的界面,故而通过插件配置界面可以对同一个应用的各个插件分别进行配置,从而可实现对各个插件按不同的方式进行加载,如此,保证了同一个应用的不同插件具有多种加载方式,灵活性较高,解决了在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式而导致灵活性较差的问题。The device for loading a plug-in of an application provided by an embodiment of the present application will first obtain configuration information of the plug-in after receiving an instruction that triggers the loading of the plug-in, and may load the plug-in according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
在本发明的一个实施例中,所述装置300还包括显示模块,用于:在所述接收模块接收触发插件加载的指令之后,显示用于提示是否对所述插件进行优化的信息;所述接收模块310还用于接收用于对所述插件进行优化的指令;所述获取模块320具体用于:在接收到用于对所述插件进行优化的指令的情况下,获取所述插件的配置信息。In an embodiment of the present invention, the device 300 further includes a display module for: after the receiving module receives an instruction to trigger loading of the plug-in, display information for prompting whether to optimize the plug-in; The receiving module 310 is further configured to receive an instruction for optimizing the plug-in; the acquiring module 320 is specifically configured to: when the instruction for optimizing the plug-in is received, acquire the configuration of the plug-in information.
在本发明的一个实施例中,所述装置300还包括显示模块,用于在所述接收模块接收触发插件加载的指令之前,显示所述插件配置界面。相应地,所述获取模块320还用于:获取通过所述插件配置界面对所述插件进行的第一加载设置。所述装置300还包括存放模块,用于将所述第一加载设置存放 于一指定位置。相应地,在获取所述插件的配置信息的过程中,所述获取模块320可具体用于:从所述指定位置,获取基于所述第一加载设置而得到的配置信息。相应地,所述装置300还可包括:写入模块,用于在所述获取模块310获取所述插件的配置信息之后,将所述插件的所述配置信息写入所述终端中的XML配置文件中。In an embodiment of the present invention, the device 300 further includes a display module, configured to display the plug-in configuration interface before the receiving module receives an instruction that triggers the loading of the plug-in. Correspondingly, the obtaining module 320 is further configured to obtain the first loading setting of the plug-in through the plug-in configuration interface. The device 300 further includes a storage module for storing the first loading setting at a designated location. Correspondingly, in the process of obtaining the configuration information of the plug-in, the obtaining module 320 may be specifically configured to obtain the configuration information obtained based on the first loading setting from the specified location. Correspondingly, the device 300 may further include: a writing module, configured to write the configuration information of the plug-in into the XML configuration in the terminal after the acquiring module 310 obtains the configuration information of the plug-in File.
在本发明的一个实施例中,获取所述插件的配置信息的过程中,所述获取模块320具体用于:在所述插件的启动次数大于1的情况下,读取所述终端中的XML配置文件;从所述XML配置文件中获取所述插件的配置信息。In an embodiment of the present invention, during the process of acquiring the configuration information of the plug-in, the acquiring module 320 is specifically configured to: read the XML in the terminal when the number of startups of the plug-in is greater than one Configuration file; obtaining configuration information of the plug-in from the XML configuration file.
在本发明的一个实施例中,所述装置300还包括:显示模块,用于在所述接收模块接收触发插件加载的指令之后,显示所述插件配置界面。相应地,所述获取模块320还可用于:获取通过所述插件配置界面对所述插件进行的第二加载设置。所述装置300还可包括:更新模块,用于基于所述第二加载设置,更新所述终端中XML配置文件中所述插件的配置信息。In an embodiment of the present invention, the device 300 further includes: a display module, configured to display the plug-in configuration interface after the receiving module receives an instruction that triggers the loading of the plug-in. Correspondingly, the obtaining module 320 can also be used to obtain the second loading setting of the plugin through the plugin configuration interface. The device 300 may further include: an update module, configured to update the configuration information of the plug-in in the XML configuration file in the terminal based on the second loading setting.
在本发明的一个实施例中,所述配置信息包括第一加载方式和第二加载方式。其中,所述第一加载方式为加载速度比所述第二加载方式更快,但占用空间比所述第二加载方式更多的方式。In an embodiment of the present invention, the configuration information includes a first loading mode and a second loading mode. Wherein, the first loading method is a method that has a faster loading speed than the second loading method, but occupies more space than the second loading method.
本申请实施例还提供了一种终端,图4为本申请实施例提供的终端的结构示意图。如图4所示,终端可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器401和存储器402,存储器402中可以存储有一个或一个以上存储应用程序或数据。其中,存储器402可以是短暂存储或持久存储。存储在存储器402的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对终端中的一系列计算机程序。更进一步地,处理器401可以设置为与存储器402通信,在终端上执行存储器402中的一系列计算机程序。终端还可以包括一个或一个以上电源403,一个或一个以上有线或无线网络接口404,一个或一个以上输入输出接口405,一个或一个以上键盘406等。An embodiment of the present application further provides a terminal, and FIG. 4 is a schematic structural diagram of the terminal provided by the embodiment of the present application. As shown in FIG. 4, the terminal may have a relatively large difference due to different configurations or performances, and may include one or more processors 401 and a memory 402, and the memory 402 may store one or more stored application programs or data. Among them, the memory 402 may be short-term storage or persistent storage. The application program stored in the memory 402 may include one or more modules (not shown), and each module may include a series of computer programs in the terminal. Furthermore, the processor 401 may be configured to communicate with the memory 402 and execute a series of computer programs in the memory 402 on the terminal. The terminal may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input/output interfaces 405, one or more keyboards 406, and so on.
在一个具体的实施例中,终端包括存储器、处理器和存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现以下流程:接收触发插件加载的指令;获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;根据所述配置信息,对所述插件进行加载。In a specific embodiment, the terminal includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the following process is implemented: receiving An instruction to trigger loading of the plug-in; obtaining configuration information of the plug-in, the configuration information is generated based on loading settings of the plug-in on the plug-in configuration interface, and the plug-in configuration interface configures all plug-ins of the application Interface; load the plug-in according to the configuration information.
本申请实施例提供的终端,在接收到触发插件加载的指令之后,会先获取所述插件的配置信息,并可根据所述配置信息,对所述插件进行加载。由于所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,且所述插件配置界面为对所述应用的所有插件进行配置的界面,故而通过插件配置界面可以对同一个应用的各个插件分别进行配置,从而可实现对各个插件按不同的方式进行加载,如此,保证了同一个应用的不同插件具有多种加载方式,灵活性较高,解决了在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式而导致灵活性较差的问题。After receiving the instruction that triggers the loading of the plug-in, the terminal provided in the embodiment of the present application will first obtain the configuration information of the plug-in, and may load the plug-in according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
在一实施例中,所述计算机程序在被所述处理器执行时,还可以执行以下操作:在所述接收触发插件加载的指令之后,显示用于提示是否对所述插件进行优化的信息;接收用于对所述插件进行优化的指令;在接收到用于对所述插件进行优化的指令的情况下,获取所述插件的配置信息。In an embodiment, when the computer program is executed by the processor, the computer program may further perform the following operation: after receiving the instruction that triggers loading of the plug-in, display information for prompting whether to optimize the plug-in; Receiving an instruction for optimizing the plug-in; when receiving an instruction for optimizing the plug-in, acquiring configuration information of the plug-in.
在一实施例中,所述计算机程序在被所述处理器执行时,还可以执行以下操作:在所述插件首次启动的情况下,显示所述插件配置界面;获取通过所述插件配置界面对所述插件进行的第一加载设置;将所述第一加载设置存放于一指定位置;从所述指定位置,获取基于所述第一加载设置而得到的配置信息;在获取所述插件的配置信息之后,将所述插件的所述配置信息写入所述终端中的XML配置文件中。In an embodiment, when the computer program is executed by the processor, the computer program may further perform the following operations: when the plug-in is first started, displaying the plug-in configuration interface; acquiring the pair through the plug-in configuration interface The first loading setting performed by the plug-in; storing the first loading setting in a designated location; obtaining configuration information based on the first loading setting from the designated location; acquiring the configuration of the plugin After the information, the configuration information of the plug-in is written into the XML configuration file in the terminal.
在一实施例中,所述计算机程序在被所述处理器执行时,还可以执行以下操作:在所述插件的启动次数大于1的情况下,读取所述终端中的XML 配置文件;从所述XML配置文件中获取所述插件的配置信息。In an embodiment, when the computer program is executed by the processor, it may also perform the following operations: when the number of startups of the plug-in is greater than 1, reading the XML configuration file in the terminal; The configuration information of the plug-in is obtained from the XML configuration file.
在一实施例中,所述计算机程序在被所述处理器执行时,还可以执行以下操作:在对所述插件进行加载之后,显示所述插件配置界面;获取通过所述插件配置界面对所述插件进行的第二加载设置;基于所述第二加载设置,更新所述终端中XML配置文件中所述插件的配置信息。In an embodiment, when the computer program is executed by the processor, the computer program may also perform the following operations: after loading the plug-in, displaying the plug-in configuration interface; acquiring the plug-in configuration interface through the plug-in configuration interface A second loading setting performed by the plug-in; based on the second loading setting, updating configuration information of the plug-in in the XML configuration file in the terminal.
在本发明实施例中,所述配置信息包括第一加载方式和第二加载方式;其中,所述第一加载方式为对所述插件进行加载的速度比所述第二加载方式更快的方式;所述第二加载方式为对所述插件加载所占用的空间比所述第二加载方式更小的方式。In the embodiment of the present invention, the configuration information includes a first loading mode and a second loading mode; wherein, the first loading mode is a way to load the plug-in faster than the second loading mode The second loading mode is a way that the space occupied by loading the plug-in is smaller than that of the second loading mode.
此外,本申请实施例还提供了一种非临时性计算机可读存储介质,所述存储介质用于存储计算机程序,所述计算机程序被处理器执行时实现本发明实施例提供的任一种加载应用的插件的方法中的步骤。例如,所述计算机程序被处理器执行时实现以下操作:接收触发插件加载的指令;获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;根据所述配置信息,对所述插件进行加载。In addition, an embodiment of the present application also provides a non-transitory computer-readable storage medium, where the storage medium is used to store a computer program, and when the computer program is executed by a processor, any kind of loading provided by the embodiment of the present invention is implemented. Steps in the method of applying the plug-in. For example, when the computer program is executed by the processor, the following operations are performed: receiving an instruction that triggers the loading of the plug-in; acquiring configuration information of the plug-in, which is generated based on the loading setting of the plug-in on the plug-in configuration interface The plug-in configuration interface is an interface for configuring all plug-ins of the application; according to the configuration information, the plug-in is loaded.
本申请实施例提供的计算机可读存储介质,在接收到触发插件加载的指令之后,会先获取所述插件的配置信息,并可根据所述配置信息,对所述插件进行加载。由于所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,且所述插件配置界面为对所述应用的所有插件进行配置的界面,故而通过插件配置界面可以对同一个应用的各个插件分别进行配置,从而可实现对各个插件按不同的方式进行加载,如此,保证了同一个应用的不同插件具有多种加载方式,灵活性较高,解决了在相关技术中,对同一个应用程序的不同插件进行加载时都会采用相同的加载方式而导致灵活性较差的问题。The computer readable storage medium provided by the embodiment of the present application will first obtain the configuration information of the plug-in after receiving the instruction that triggers the loading of the plug-in, and may load the plug-in according to the configuration information. Since the configuration information is generated based on the loading setting of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application, the same configuration can be performed through the plug-in configuration interface Each plug-in of the application is configured separately, so that each plug-in can be loaded in different ways. This ensures that different plug-ins of the same application have multiple loading methods, and the flexibility is high. When loading different plug-ins of the same application, the same loading method is used, which leads to the problem of poor flexibility.
其中,所述的计算机可读存储介质包括只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟 或者光盘等。The computer-readable storage medium includes read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk.
此外,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的方法。In addition, an embodiment of the present invention also provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are When executed by a computer, the computer is caused to execute the method in any of the above method embodiments.
本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and/or block in the flowchart and/or block diagram and a combination of the flow and/or block in the flowchart and/or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device A device for realizing the functions specified in one block or multiple blocks of one flow or multiple flows of a flowchart and/or one block or multiple blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device The instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and/or block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in a computer-readable medium, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements not only includes those elements, but also includes Other elements not explicitly listed, or include elements inherent to such processes, methods, goods, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, commodity or equipment that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The embodiments in this specification are described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above is only an embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, this application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (13)

  1. 一种加载应用的插件的方法,应用于终端,其中,所述方法包括:A method for loading an application plug-in is applied to a terminal, wherein the method includes:
    接收触发插件加载的指令;Receive instructions that trigger plugin loading;
    获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;Acquiring configuration information of the plug-in, the configuration information is generated based on loading settings of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is an interface for configuring all plug-ins of the application;
    根据所述配置信息,对所述插件进行加载。According to the configuration information, load the plug-in.
  2. 根据权利要求1所述的方法,其中,在所述接收触发插件加载的指令之后,所述方法还包括:The method according to claim 1, wherein after the instruction that triggers the loading of the plug-in is received, the method further comprises:
    显示用于提示是否对所述插件进行优化的信息;Displaying information for prompting whether to optimize the plug-in;
    接收用于对所述插件进行优化的指令;Receiving instructions for optimizing the plug-in;
    所述获取所述插件的配置信息包括:在接收到用于对所述插件进行优化的指令的情况下,获取所述插件的配置信息。The acquiring configuration information of the plug-in includes: acquiring configuration information of the plug-in when receiving an instruction for optimizing the plug-in.
  3. 根据权利要求1所述的方法,其中,在所述接收触发插件加载的指令之前,所述方法还包括:The method according to claim 1, wherein before the receiving the instruction that triggers the loading of the plug-in, the method further comprises:
    在所述插件首次启动的情况下,执行以下操作:When the plug-in is started for the first time, perform the following operations:
    显示所述插件配置界面;Display the plug-in configuration interface;
    获取通过所述插件配置界面对所述插件进行的第一加载设置;Obtaining the first loading setting for the plug-in through the plug-in configuration interface;
    将所述第一加载设置存放于一指定位置;Storing the first loading setting in a designated location;
    所述获取所述插件的配置信息包括:从所述指定位置,获取基于所述第一加载设置而得到的配置信息;The acquiring configuration information of the plug-in includes: acquiring the configuration information obtained based on the first loading setting from the specified location;
    在获取所述插件的配置信息之后,所述方法还包括:将所述插件的所述配置信息写入所述终端中的可扩展标记语言XML配置文件中。After acquiring the configuration information of the plug-in, the method further includes: writing the configuration information of the plug-in into an extensible markup language XML configuration file in the terminal.
  4. 根据权利要求1所述的方法,其中,所述获取所述插件的配置信息包括:The method according to claim 1, wherein the acquiring configuration information of the plug-in includes:
    在所述插件的启动次数大于1的情况下,读取所述终端中的XML配置 文件;When the number of startups of the plug-in is greater than 1, read the XML configuration file in the terminal;
    从所述XML配置文件中获取所述插件的配置信息。Obtain the configuration information of the plug-in from the XML configuration file.
  5. 根据权利要求1所述的方法,其中,在所述对所述插件进行加载之后,所述方法还包括;The method according to claim 1, wherein after the loading the plug-in, the method further comprises;
    显示所述插件配置界面;Display the plug-in configuration interface;
    获取通过所述插件配置界面对所述插件进行的第二加载设置;Obtaining the second loading setting for the plug-in through the plug-in configuration interface;
    基于所述第二加载设置,更新所述终端中XML配置文件中所述插件的配置信息。Based on the second loading setting, the configuration information of the plug-in in the XML configuration file in the terminal is updated.
  6. 根据权利要求1所述的方法,其中,所述配置信息包括第一加载方式和第二加载方式;The method according to claim 1, wherein the configuration information includes a first loading mode and a second loading mode;
    其中,所述第一加载方式为对所述插件进行加载的速度比所述第二加载方式更快的方式;Wherein, the first loading mode is a way to load the plug-in faster than the second loading mode;
    所述第二加载方式为对所述插件加载所占用的空间比所述第一加载方式更小的方式。The second loading mode is a way that the space occupied by loading the plug-in is smaller than that of the first loading mode.
  7. 一种加载应用的插件的装置,其中,包括:A device for loading an application plug-in, including:
    接收模块,用于接收触发插件加载的指令;The receiving module is used to receive the instruction that triggers the loading of the plug-in;
    获取模块,用于获取所述插件的配置信息,所述配置信息是基于在插件配置界面上对所述插件的加载设置而生成,所述插件配置界面为对所述应用的所有插件进行配置的界面;An acquiring module, configured to acquire configuration information of the plug-in, the configuration information is generated based on loading settings of the plug-in on the plug-in configuration interface, and the plug-in configuration interface is configured for all plug-ins of the application interface;
    加载模块,用于根据所述获取模块获取的所述配置信息,对所述插件进行加载。The loading module is configured to load the plug-in according to the configuration information obtained by the obtaining module.
  8. 根据权利要求7所述的装置,其中,所述装置还包括显示模块,用于:在所述接收模块接收触发插件加载的指令之后,显示用于提示是否对所述插件进行优化的信息;The apparatus according to claim 7, wherein the apparatus further comprises a display module for: after the receiving module receives an instruction to trigger loading of the plug-in, displaying information for prompting whether to optimize the plug-in;
    所述接收模块还用于接收用于对所述插件进行优化的指令;The receiving module is also used to receive instructions for optimizing the plug-in;
    所述获取模块用于:在接收到用于对所述插件进行优化的指令的情况下, 获取所述插件的配置信息。The acquiring module is configured to acquire configuration information of the plug-in when receiving an instruction for optimizing the plug-in.
  9. 根据权利要求7所述的装置,其中,所述装置还包括显示模块,用于在所述接收模块接收触发插件加载的指令之前,显示所述插件配置界面;The device according to claim 7, wherein the device further comprises a display module for displaying the plug-in configuration interface before the receiving module receives an instruction that triggers the loading of the plug-in;
    所述获取模块还用于:获取通过所述插件配置界面对所述插件进行的第一加载设置;The obtaining module is further configured to obtain the first loading setting for the plug-in through the plug-in configuration interface;
    所述装置还包括存放模块,用于将所述第一加载设置存放于一指定位置;The device further includes a storage module for storing the first loading setting at a designated location;
    在获取所述插件的配置信息的过程中,所述获取模块用于:从所述指定位置,获取基于所述第一加载设置而得到的配置信息;In the process of acquiring the configuration information of the plug-in, the acquiring module is configured to acquire the configuration information obtained based on the first loading setting from the specified location;
    所述装置还包括:写入模块,用于在所述获取模块获取所述插件的配置信息之后,将所述插件的所述配置信息写入所述终端中的可扩展标记语言XML配置文件中。The device further includes a writing module for writing the configuration information of the plug-in into the XML configuration file of the extensible markup language in the terminal after the acquisition module obtains the configuration information of the plug-in .
  10. 根据权利要求7所述的装置,其中,获取所述插件的配置信息的过程中,所述获取模块用于:The apparatus according to claim 7, wherein in the process of acquiring the configuration information of the plug-in, the acquiring module is configured to:
    在所述插件的启动次数大于1的情况下,读取所述终端中的XML配置文件;In the case that the number of startups of the plug-in is greater than 1, reading the XML configuration file in the terminal;
    从所述XML配置文件中获取所述插件的配置信息。Obtain the configuration information of the plug-in from the XML configuration file.
  11. 根据权利要求7所述的装置,其中,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    显示模块,用于在所述接收模块接收触发插件加载的指令之后,显示所述插件配置界面;A display module, configured to display the plug-in configuration interface after the receiving module receives an instruction that triggers the loading of the plug-in;
    所述获取模块还用于:获取通过所述插件配置界面对所述插件进行的第二加载设置;The acquiring module is further configured to: acquire a second loading setting for the plug-in through the plug-in configuration interface;
    所述装置还包括:更新模块,用于基于所述第二加载设置,更新所述终端中XML配置文件中所述插件的配置信息。The device further includes an update module for updating the configuration information of the plug-in in the XML configuration file in the terminal based on the second loading setting.
  12. 一种终端,其中,包括存储器和处理器,所述存储器上存储计算机程序,当所述计算机程序被执行时,实现根据权利要求1至6中任一项所述的方法中的步骤。A terminal, including a memory and a processor, a computer program is stored on the memory, and when the computer program is executed, the steps in the method according to any one of claims 1 to 6 are implemented.
  13. 一种非临时性计算机可读存储介质,其中,所述存储介质上存储计算机程序,当所述计算机程序被执行时,实现根据权利要求1至6中任一项所述的方法中的步骤。A non-transitory computer-readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed, the steps in the method according to any one of claims 1 to 6 are implemented.
PCT/CN2019/125708 2018-12-25 2019-12-16 Method and device for loading plug-in of application, and terminal WO2020135129A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811595293.7A CN111367577A (en) 2018-12-25 2018-12-25 Method, device and terminal for loading plug-in of application
CN201811595293.7 2018-12-25

Publications (1)

Publication Number Publication Date
WO2020135129A1 true WO2020135129A1 (en) 2020-07-02

Family

ID=71128350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/125708 WO2020135129A1 (en) 2018-12-25 2019-12-16 Method and device for loading plug-in of application, and terminal

Country Status (2)

Country Link
CN (1) CN111367577A (en)
WO (1) WO2020135129A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220222088A1 (en) * 2020-05-08 2022-07-14 Tencent Technology (Shenzhen) Company Limited Application starting method and related device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068899A (en) * 2020-09-01 2020-12-11 北京五八信息技术有限公司 Plug-in loading method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298523A (en) * 2014-09-23 2015-01-21 北京金山安全软件有限公司 Component loading method and device and terminal
CN103677823B (en) * 2013-12-06 2017-05-24 北京奇虎科技有限公司 Method and device for managing browser plug-ins
CN103761114B (en) * 2013-10-18 2017-10-17 北京奇虎科技有限公司 A kind of browser side loading extension and/or the method and device of plug-in unit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1277204C (en) * 2003-06-02 2006-09-27 联想(北京)有限公司 Facility centralizing management method based by plugging technology
US7434215B2 (en) * 2003-09-11 2008-10-07 International Business Machines Corporation Mechanism for loading plugin classes at an appropriate location in the class loader hierarchy
CN105094890B (en) * 2012-03-29 2018-12-07 北京奇虎科技有限公司 A kind of application plug loading method and device
CN106096032A (en) * 2016-06-28 2016-11-09 天津海量信息技术股份有限公司 A kind of data digging system
CN106933570B (en) * 2017-02-16 2020-10-20 北京临近空间飞行器系统工程研究所 Aerospace test, launch and control software platform based on plug-in technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761114B (en) * 2013-10-18 2017-10-17 北京奇虎科技有限公司 A kind of browser side loading extension and/or the method and device of plug-in unit
CN103677823B (en) * 2013-12-06 2017-05-24 北京奇虎科技有限公司 Method and device for managing browser plug-ins
CN104298523A (en) * 2014-09-23 2015-01-21 北京金山安全软件有限公司 Component loading method and device and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220222088A1 (en) * 2020-05-08 2022-07-14 Tencent Technology (Shenzhen) Company Limited Application starting method and related device
US11941411B2 (en) * 2020-05-08 2024-03-26 Tencent Technology (Shenzhen) Company Limited Application starting method and related device

Also Published As

Publication number Publication date
CN111367577A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US11861375B2 (en) Configuration for application using microservices
US11467816B1 (en) Method and system of running an application
US9307342B2 (en) Dynamic rendering for software applications
US9239713B1 (en) Platform independent rendering for native mobile applications
US9430207B1 (en) Automated cross-platform native mobile application generation with cloud driven user interface and workflow synthesis
US9798555B2 (en) Application implementation method and apparatus
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
US20190102201A1 (en) Component invoking method and apparatus, and component data processing method and apparatus
US10019298B2 (en) Middleware interface and middleware interface generator
US8886933B1 (en) Streamlined provisioning and configuration of computing devices
US11474842B2 (en) Integration application creator design
CN111309216B (en) List page display method and device, computer equipment and storage medium
CN104899039A (en) Method and device for providing screen shooting service in terminal device
WO2020135129A1 (en) Method and device for loading plug-in of application, and terminal
CN114385164A (en) Page generation and rendering method and device, electronic equipment and storage medium
US9875119B2 (en) Extensibility framework
US10684895B1 (en) Systems and methods for managing containerized applications in a flexible appliance platform
CN112235132B (en) Method, device, medium and server for dynamically configuring service
CN112114804A (en) Application program generation method, device and system
US9218162B1 (en) Cross-platform mobile application specification and automatic synthesizer
CN111142972B (en) Method, apparatus, system, and medium for extending functions of application program
CN110502251B (en) Application installation method and device
CN113867776A (en) Method and device for publishing middle station application, electronic equipment and storage medium
US10698703B2 (en) Mobile application management by run-time insertion of a substitute application class loader into a mobile application process
US8887125B1 (en) Systems and methods for dynamic artefact substitution

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19902444

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19902444

Country of ref document: EP

Kind code of ref document: A1