CN116684500A - Modularized communication control method, device, system, electronic equipment and storage medium - Google Patents
Modularized communication control method, device, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116684500A CN116684500A CN202310581114.9A CN202310581114A CN116684500A CN 116684500 A CN116684500 A CN 116684500A CN 202310581114 A CN202310581114 A CN 202310581114A CN 116684500 A CN116684500 A CN 116684500A
- Authority
- CN
- China
- Prior art keywords
- component
- parameter
- target
- page
- current
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种组件化通信控制方法及装置、系统、电子设备、存储介质,该方法包括:获取至少一个当前组件的页面使用请求;对于任一当前组件:根据当前组件的页面使用请求,确定与该页面使用请求相匹配的调用参数,调用参数用于指示当前组件对应的参数调用信息;根据调用参数,确定当前组件与目标组件之间的通信路径,并根据通信路径,在路由模块中调用目标组件的组件参数。可见,实施本发明能够根据获取到的每个当前组件的页面使用请求,确定该当前组件的调用参数,进而根据该调用参数调用目标组件的组件参数以使当前组件打开与该页面使用请求相匹配的目标页面,能够提高组件之间的通信灵活性,进而提高组件化通信效率。
The invention discloses a componentized communication control method, device, system, electronic equipment, and storage medium. The method includes: obtaining a page use request of at least one current component; for any current component: according to the page use request of the current component, Determine the call parameters that match the page usage request, the call parameters are used to indicate the parameter call information corresponding to the current component; according to the call parameters, determine the communication path between the current component and the target component, and according to the communication path, in the routing module Call the component parameters of the target component. It can be seen that the implementation of the present invention can determine the calling parameters of each current component according to the obtained page usage request of the current component, and then call the component parameters of the target component according to the calling parameters so that the opening of the current component matches the page usage request The target page can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种组件化通信控制方法及装置、系统、电子设备、存储介质。The present invention relates to the technical field of communication, and in particular to a componentized communication control method and device, system, electronic equipment, and storage medium.
背景技术Background technique
组件化是指解耦复杂系统时将多个功能模块拆分、重组的过程,由多种属性、状态反映其内部特性。Componentization refers to the process of splitting and reorganizing multiple functional modules when decoupling a complex system, and its internal characteristics are reflected by various attributes and states.
当前,现有的组件化通讯方案通常能够将字符串硬编码成相关的通信参数,从而实现组件之间的通信。然而,这种现有的组件化通讯方案往往依赖于字符串硬编码,导致组件之间的传参方式有限,例如url的“注册”、“实现”、“使用”等必须用使用相同的字符规则,一旦任何一方做出修改都会导致其他方的代码失效,这会降低组件之间的通信灵活性,进而降低组件化通信效率。Currently, existing componentized communication solutions can usually hard-code character strings into relevant communication parameters, so as to realize communication between components. However, this existing componentized communication solution often relies on string hardcoding, resulting in limited ways of passing parameters between components. For example, the "registration", "implementation", and "use" of url must use the same characters Rules, once any party makes a modification, the code of the other party will become invalid, which will reduce the flexibility of communication between components, thereby reducing the efficiency of componentized communication.
因此,提供一种能够提高组件之间的通信灵活性,进而提高组件化通信效率的方法显得尤为重要。Therefore, it is particularly important to provide a method that can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication.
发明内容Contents of the invention
本发明所要解决的技术问题在于,提供一种组件化通信控制方法及装置、系统、电子设备、存储介质,能够有利于提高组件之间的通信灵活性,进而提高组件化通信效率。The technical problem to be solved by the present invention is to provide a componentized communication control method and device, system, electronic equipment, and storage medium, which can help improve the flexibility of communication between components, and further improve the efficiency of componentized communication.
为了解决上述技术问题,本发明第一方面公开了一种组件化通信控制方法,所述方法包括:In order to solve the above technical problems, the first aspect of the present invention discloses a componentized communication control method, the method comprising:
获取至少一个当前组件的页面使用请求;Get at least one page usage request of the current component;
对于任一所述当前组件:For either of the current components:
根据所述当前组件的页面使用请求,确定与该页面使用请求相匹配的调用参数,所述调用参数用于指示所述当前组件对应的参数调用信息;According to the page use request of the current component, determine a call parameter matching the page use request, where the call parameter is used to indicate parameter call information corresponding to the current component;
根据所述调用参数,确定所述当前组件与目标组件之间的通信路径,并根据所述通信路径,在路由模块中调用所述目标组件的组件参数,所述目标组件的组件参数用于所述当前组件打开与所述页面使用请求相匹配的目标页面。Determine the communication path between the current component and the target component according to the call parameter, and call the component parameter of the target component in the routing module according to the communication path, and the component parameter of the target component is used for the target component The current component opens the target page matching the page usage request.
作为一种可选的实施方式,在本发明第一方面中,所述调用参数用于指示与所述页面使用请求相匹配的页面名称和/或页面标题;As an optional implementation manner, in the first aspect of the present invention, the call parameter is used to indicate the page name and/or page title matching the page use request;
以及,所述根据所述调用参数,确定所述当前组件与目标组件之间的通信路径,包括:And, the determining the communication path between the current component and the target component according to the calling parameters includes:
根据所述调用参数,在路由模块预先创建的多个参数接口中查询是否存在与所述调用参数相匹配的目标参数接口,其中,每个所述参数接口对应一个字典,所述字典用于存储相应参数接口的匹配组件的组件标识以及组件变量;According to the call parameters, query whether there is a target parameter interface matching the call parameters among the multiple parameter interfaces pre-created by the routing module, wherein each of the parameter interfaces corresponds to a dictionary, and the dictionary is used to store The component identifier and component variable of the matching component of the corresponding parameter interface;
当查询到存在所述目标参数接口时,通过该目标参数接口对应的目标字典,确定所述调用参数对应的目标组件,并根据所述目标字典以及预设反射机制,获取所述目标组件的类参数;When it is found that the target parameter interface exists, the target component corresponding to the call parameter is determined through the target dictionary corresponding to the target parameter interface, and the class of the target component is obtained according to the target dictionary and the preset reflection mechanism parameter;
根据所述目标组件的类参数,在所述路由模块中创建与该类参数相匹配的目标实例,并根据所述目标实例,确定所述当前组件与所述目标组件之间的通信路径。According to the class parameter of the target component, a target instance matching the class parameter is created in the routing module, and a communication path between the current component and the target component is determined according to the target instance.
作为一种可选的实施方式,在本发明第一方面中,每个所述参数接口对应的字典是由以下方式确定的:As an optional implementation manner, in the first aspect of the present invention, the dictionary corresponding to each parameter interface is determined in the following manner:
获取所述参数接口对应的页面业务类型;Obtain the page service type corresponding to the parameter interface;
根据所述页面业务类型,确定所述参数接口的匹配组件,并建立所述参数接口与所述匹配组件之间的关联关系;Determine the matching component of the parameter interface according to the page business type, and establish an association relationship between the parameter interface and the matching component;
根据所述参数接口与所述匹配组件之间的关联关系,获取所述匹配组件的组件标识以及组件变量,并根据所述匹配组件的组件标识以及组件变量,确定所述参数接口对应的字典。Obtain the component identifier and component variable of the matching component according to the association relationship between the parameter interface and the matching component, and determine the dictionary corresponding to the parameter interface according to the component identifier and component variable of the matching component.
作为一种可选的实施方式,在本发明第一方面中,所述目标实例包括多个实例方法;As an optional implementation manner, in the first aspect of the present invention, the target instance includes multiple instance methods;
以及,所述根据所述通信路径,在路由模块中调用所述目标组件的组件参数,包括:And, according to the communication path, invoking the component parameters of the target component in the routing module includes:
根据所述通信路径以及所述页面使用请求,确定所述目标实例中与所述页面使用请求相匹配的至少一个目标实例方法;Determine at least one target instance method in the target instance that matches the page use request according to the communication path and the page use request;
通过预设注入机制,调用所有所述目标实例方法作为所述目标组件的组件参数。Through a preset injection mechanism, all the target instance methods are called as component parameters of the target component.
作为一种可选的实施方式,在本发明第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the method further includes:
确定所有所述当前组件的组件数量,并判断所述组件数量是否大于预设数量阈值;determining the component quantity of all the current components, and judging whether the component quantity is greater than a preset quantity threshold;
当判断出所述组件数量大于所述预设数量阈值时,根据每个所述当前组件的页面使用请求,确定所有所述当前组件的参数调用顺序表,所述参数调用顺序表用于指示每个所述当前组件的参数调用顺序;When it is determined that the number of components is greater than the preset number threshold, according to the page use request of each current component, determine the parameter call sequence table of all the current components, and the parameter call sequence table is used to indicate that each The parameter calling sequence of the current component;
以及,所述根据所述通信路径,在路由模块中调用所述目标组件的组件参数,包括:And, according to the communication path, invoking the component parameters of the target component in the routing module includes:
根据所述参数调用顺序表以及所述通信路径,在路由模块中调用所述目标组件的组件参数。Call the component parameters of the target component in the routing module according to the parameter calling sequence table and the communication path.
作为一种可选的实施方式,在本发明第一方面中,所述根据每个所述当前组件的页面使用请求,确定所有所述当前组件的参数调用顺序表,包括:As an optional implementation manner, in the first aspect of the present invention, according to the page usage request of each current component, determining the parameter call sequence table of all the current components includes:
根据每个所述当前组件的页面使用请求,预测每个所述当前组件对应的页面数据量;Predict the amount of page data corresponding to each of the current components according to the page usage request of each of the current components;
根据所有所述页面数据量以及所有所述页面使用请求,确定每个所述当前组件的页面使用优先度;Determine the page usage priority of each of the current components according to the amount of all the page data and all the page usage requests;
根据所有所述当前组件的页面使用优先度,确定所有所述当前组件对应的调用顺序表。According to the page usage priorities of all the current components, the calling sequence tables corresponding to all the current components are determined.
本发明第二方面公开了一种组件化通信控制装置,所述装置包括:The second aspect of the present invention discloses a componentized communication control device, which includes:
获取模块,用于获取至少一个当前组件的页面使用请求;An acquisition module, configured to acquire at least one page usage request of the current component;
调用模块,用于根据任一所述当前组件的页面使用请求,确定与该页面使用请求相匹配的调用参数,所述调用参数用于指示所述当前组件对应的参数调用信息;根据所述调用参数,确定所述当前组件与目标组件之间的通信路径;根据所述通信路径,在路由模块中调用所述目标组件的组件参数,所述目标组件的组件参数用于所述当前组件打开与所述页面使用请求相匹配的目标页面。A call module, configured to determine a call parameter matching the page use request according to any page use request of the current component, where the call parameter is used to indicate parameter call information corresponding to the current component; according to the call parameters to determine the communication path between the current component and the target component; according to the communication path, call the component parameters of the target component in the routing module, and the component parameters of the target component are used for the current component to open and The page matches the target page with the request.
作为一种可选的实施方式,在本发明第二方面中,所述调用参数用于指示与所述页面使用请求相匹配的页面名称和/或页面标题;As an optional implementation manner, in the second aspect of the present invention, the call parameter is used to indicate the page name and/or page title matching the page use request;
以及,所述调用模块根据所述调用参数,确定所述当前组件与目标组件之间的通信路径的方式具体包括:And, the manner in which the calling module determines the communication path between the current component and the target component according to the calling parameters specifically includes:
根据所述调用参数,在路由模块预先创建的多个参数接口中查询是否存在与所述调用参数相匹配的目标参数接口,其中,每个所述参数接口对应一个字典,所述字典用于存储相应参数接口的匹配组件的组件标识以及组件变量;According to the call parameters, query whether there is a target parameter interface matching the call parameters among the multiple parameter interfaces pre-created by the routing module, wherein each of the parameter interfaces corresponds to a dictionary, and the dictionary is used to store The component identifier and component variable of the matching component of the corresponding parameter interface;
当查询到存在所述目标参数接口时,通过该目标参数接口对应的目标字典,确定所述调用参数对应的目标组件,并根据所述目标字典以及预设反射机制,获取所述目标组件的类参数;When it is found that the target parameter interface exists, the target component corresponding to the call parameter is determined through the target dictionary corresponding to the target parameter interface, and the class of the target component is obtained according to the target dictionary and the preset reflection mechanism parameter;
根据所述目标组件的类参数,在所述路由模块中创建与该类参数相匹配的目标实例,并根据所述目标实例,确定所述当前组件与所述目标组件之间的通信路径。According to the class parameter of the target component, a target instance matching the class parameter is created in the routing module, and a communication path between the current component and the target component is determined according to the target instance.
作为一种可选的实施方式,在本发明第二方面中,每个所述参数接口对应的字典是由以下方式确定的:As an optional implementation manner, in the second aspect of the present invention, the dictionary corresponding to each parameter interface is determined in the following manner:
获取所述参数接口对应的页面业务类型;Obtain the page service type corresponding to the parameter interface;
根据所述页面业务类型,确定所述参数接口的匹配组件,并建立所述参数接口与所述匹配组件之间的关联关系;Determine the matching component of the parameter interface according to the page business type, and establish an association relationship between the parameter interface and the matching component;
根据所述参数接口与所述匹配组件之间的关联关系,获取所述匹配组件的组件标识以及组件变量,并根据所述匹配组件的组件标识以及组件变量,确定所述参数接口对应的字典。Obtain the component identifier and component variable of the matching component according to the association relationship between the parameter interface and the matching component, and determine the dictionary corresponding to the parameter interface according to the component identifier and component variable of the matching component.
作为一种可选的实施方式,在本发明第二方面中,所述目标实例包括多个实例方法;As an optional implementation, in the second aspect of the present invention, the target instance includes multiple instance methods;
以及,所述调用模块根据所述通信路径,在路由模块中调用所述目标组件的组件参数的方式具体包括:And, the method of calling the component parameters of the target component in the routing module by the calling module according to the communication path specifically includes:
根据所述通信路径以及所述页面使用请求,确定所述目标实例中与所述页面使用请求相匹配的至少一个目标实例方法;Determine at least one target instance method in the target instance that matches the page use request according to the communication path and the page use request;
通过预设注入机制,调用所有所述目标实例方法作为所述目标组件的组件参数。Through a preset injection mechanism, all the target instance methods are called as component parameters of the target component.
作为一种可选的实施方式,在本发明第二方面中,所述装置还包括:As an optional implementation manner, in the second aspect of the present invention, the device further includes:
确定模块,用于确定所有所述当前组件的组件数量;a determining module, configured to determine the component quantities of all said current components;
判断模块,用于判断所述组件数量是否大于预设数量阈值;A judging module, configured to judge whether the number of components is greater than a preset number threshold;
所述确定模块,还用于当所述判断模块判断出所述组件数量大于所述预设数量阈值时,根据每个所述当前组件的页面使用请求,确定所有所述当前组件的参数调用顺序表,所述参数调用顺序表用于指示每个所述当前组件的参数调用顺序;The determination module is further configured to, when the judging module determines that the number of components is greater than the preset number threshold, determine the parameter calling sequence of all the current components according to the page use request of each current component A table, the parameter call sequence table is used to indicate the parameter call sequence of each of the current components;
以及,所述调用模块根据所述通信路径,在路由模块中调用所述目标组件的组件参数的方式具体包括:And, the method of calling the component parameters of the target component in the routing module by the calling module according to the communication path specifically includes:
根据所述参数调用顺序表以及所述通信路径,在路由模块中调用所述目标组件的组件参数。Call the component parameters of the target component in the routing module according to the parameter calling sequence table and the communication path.
作为一种可选的实施方式,在本发明第二方面中,所述确定模块根据每个所述当前组件的页面使用请求,确定所有所述当前组件的参数调用顺序表的方式具体包括:As an optional implementation manner, in the second aspect of the present invention, the manner in which the determination module determines the parameter call sequence table of all the current components according to the page use request of each current component specifically includes:
根据每个所述当前组件的页面使用请求,预测每个所述当前组件对应的页面数据量;Predict the amount of page data corresponding to each of the current components according to the page usage request of each of the current components;
根据所有所述页面数据量以及所有所述页面使用请求,确定每个所述当前组件的页面使用优先度;Determine the page usage priority of each of the current components according to the amount of all the page data and all the page usage requests;
根据所有所述当前组件的页面使用优先度,确定所有所述当前组件对应的调用顺序表。According to the page usage priorities of all the current components, the calling sequence tables corresponding to all the current components are determined.
本发明第三方面公开了另一种组件化通信控制装置,所述装置包括:The third aspect of the present invention discloses another componentized communication control device, which includes:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面公开的组件化通信控制方法。The processor invokes the executable program code stored in the memory to execute the componentized communication control method disclosed in the first aspect of the present invention.
本发明第四方面公开了一种电子设备,所述电子设备用于执行本发明第一方面公开的的互联网页面的自动切换方法。The fourth aspect of the present invention discloses an electronic device, which is used to execute the method for automatically switching Internet pages disclosed in the first aspect of the present invention.
本发明第五方面公开了一种计算机存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面公开的组件化通信控制方法。The fifth aspect of the present invention discloses a computer storage medium. The computer storage medium stores computer instructions. When the computer instructions are invoked, they are used to execute the componentized communication control method disclosed in the first aspect of the present invention.
本发明第六方面公开了一种组件化通信控制系统,所述系统包括路由模块及多个组件,所述系统用于执行本发明第一方面公开的组件化通信控制方法。The sixth aspect of the present invention discloses a componentized communication control system, the system includes a routing module and multiple components, and the system is used to implement the componentized communication control method disclosed in the first aspect of the present invention.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,能够根据获取到的每个当前组件的页面使用请求,确定该当前组件的调用参数,进而根据该调用参数调用目标组件的组件参数以使该当前组件打开与该页面使用请求相匹配的目标页面,能够提高组件之间的通信灵活性,进而提高组件化通信效率。In the embodiment of the present invention, the call parameters of the current component can be determined according to the obtained page use request of each current component, and then the component parameters of the target component can be called according to the call parameters so that the current component can open the corresponding page use request. A matching target page can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明实施例公开的一种组件化通信控制方法的流程示意图;FIG. 1 is a schematic flowchart of a componentized communication control method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的一种路由模块的结构示意图;Fig. 2 is a schematic structural diagram of a routing module disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种组件化通信控制方法的流程示意图;FIG. 3 is a schematic flowchart of another componentized communication control method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的另一种路由模块的结构示意图;FIG. 4 is a schematic structural diagram of another routing module disclosed in an embodiment of the present invention;
图5是本发明实施例公开的一种组件化通信控制装置的结构示意图;Fig. 5 is a schematic structural diagram of a componentized communication control device disclosed in an embodiment of the present invention;
图6是本发明实施例公开的另一种组件化通信控制装置的结构示意图;Fig. 6 is a schematic structural diagram of another componentized communication control device disclosed in an embodiment of the present invention;
图7是本发明实施例公开的又一种组件化通信控制装置的结构示意图;Fig. 7 is a schematic structural diagram of another componentized communication control device disclosed in an embodiment of the present invention;
图8是本发明实施例公开的一种组件化通信控制系统的结构示意图。Fig. 8 is a schematic structural diagram of a componentized communication control system disclosed by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或端没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或端固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, device, product, or terminal comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally further includes For other steps or units inherent in these processes, methods, products or ends.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
当前,现有的iOS传统组件化通信方案,例如URL Scheme组件通信方式、Protocol(协议)-Class(类)等往往存在一定的编写缺陷。具体的,URL Scheme组件通信方式往往传参方式有限且无法利用编译器对参数类型进行检查,通过该方式实现的组件化通信中,大部分参数都是由字符串转换而来,导致其对应的组件化通信只适用于界面模块,而不适用于通用模块,此外,URL Scheme组件通信方式往往依赖于字符串硬编码,无法保证所使用的组件和/或模块之间存在一定的解耦能力,例如url的“注册”、“实现”、“使用”等都需要使用相同的字符规则,一旦任何一方做出修改都会导致其他方的代码失效;Protocol(协议)-Class(类)是用框架来创建所有对象,若不同对象之间的创建方式不同,则不同对象之间无法进行参数传输,即Protocol(协议)-Class(类)不支持复杂的创建方式且较为依赖注入机制。Currently, existing iOS traditional componentized communication solutions, such as URL Scheme component communication methods, Protocol (protocol)-Class (class), etc., often have certain programming defects. Specifically, the URL Scheme component communication method often has limited parameter passing methods and cannot use the compiler to check the parameter type. In the component communication implemented by this method, most of the parameters are converted from strings, resulting in the corresponding Component communication is only applicable to interface modules, not general modules. In addition, the communication method of URL Scheme components often relies on string hardcoding, which cannot guarantee the decoupling ability between the used components and/or modules. For example, the "registration", "implementation", and "use" of url all need to use the same character rules. Once any party makes a modification, the code of the other party will become invalid; Create all objects. If the creation methods of different objects are different, parameter transmission cannot be performed between different objects, that is, Protocol (protocol)-Class (class) does not support complex creation methods and is more dependent on the injection mechanism.
而本发明公开了一种组件化通信控制方法及装置,能够根据获取到的每个当前组件的页面使用请求,确定该当前组件的调用参数,进而根据该调用参数调用目标组件的组件参数以使该当前组件打开与该页面使用请求相匹配的目标页面,能够提高组件之间的通信灵活性,进而提高组件化通信效率。这可以很好地解决上述现有技术存在的痛点,以下分别进行详细说明。However, the present invention discloses a componentized communication control method and device, which can determine the call parameters of the current component according to the obtained page use request of each current component, and then call the component parameters of the target component according to the call parameters to make The current component opens a target page that matches the page use request, which can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication. This can well solve the pain points in the above-mentioned prior art, which will be described in detail below.
实施例一Embodiment one
请参阅图1,图1是本发明实施例公开的一种组件化通信控制方法的流程示意图。其中,图1所描述的组件化通信控制方法可以应用于日常需要进行组件化通信的场景中,本发明实施例不做限定。可选的,该方法可以由组件化通信系统实现,也可以是由对组件化通信流程进行处理的本地服务器或云端服务器等实现,其中,该组件化通信系统可以集成在组件化通信装置中,也可以独立于该组件化通信装置而存在,本发明实施例不做限定。如图1所示,该组件化通信控制方法可以应用于任一当前组件,该方法包括以下操作:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a componentized communication control method disclosed in an embodiment of the present invention. Wherein, the componentized communication control method described in FIG. 1 can be applied to scenarios where componentized communication is required in daily life, which is not limited in this embodiment of the present invention. Optionally, the method may be implemented by a componentized communication system, or by a local server or cloud server that processes the componentized communication process, wherein the componentized communication system may be integrated in a componentized communication device, It may also exist independently of the componentized communication device, which is not limited in this embodiment of the present invention. As shown in Figure 1, the componentized communication control method can be applied to any current component, and the method includes the following operations:
101、获取当前组件的页面使用请求。101. Obtain a page use request of the current component.
在本发明实施例中,可选的,该当前组件用于指示当前正在发起页面使用请求的组件,例如iOS组件等。可选的,该页面使用请求用于指示当前组件需要打开的页面(ModelView Controller),例如打开浏览器的搜索页面等。需要说明的是,当前组件的页面使用请求可以是由用户自主确定的,也可以是组件化通信系统自动确定的,此处不作限定。In this embodiment of the present invention, optionally, the current component is used to indicate a component that is currently initiating a page use request, such as an iOS component. Optionally, the page usage request is used to indicate the page (ModelView Controller) that the current component needs to open, such as opening the search page of the browser. It should be noted that the page usage request of the current component may be determined independently by the user, or automatically determined by the componentized communication system, which is not limited here.
102、根据当前组件的页面使用请求,确定与该页面使用请求相匹配的调用参数。102. According to the page usage request of the current component, determine the calling parameter matching the page usage request.
在本发明实施例中,可选的,调用参数用于指示当前组件对应的参数调用信息,该参数调用信息可以是当前组件所需打开页面的页面名称和/或页面标题,该页面名称用于指示该所需打开页面的页面名,例如百度网、淘宝网等;该页面标题用于指示该所需打开页面的页面内容,例如淘宝网的页面标题可以为购物、商品、价格等。In this embodiment of the present invention, optionally, the invocation parameter is used to indicate the parameter invocation information corresponding to the current component, and the parameter invocation information may be the page name and/or page title of the page to be opened by the current component, and the page name is used for Indicate the page name of the page to be opened, such as Baidu, Taobao, etc.; the page title is used to indicate the page content of the page to be opened, for example, the page title of Taobao can be shopping, commodities, prices, etc.
103、根据调用参数,确定当前组件与目标组件之间的通信路径;根据通信路径,在路由模块中调用目标组件的组件参数。103. Determine the communication path between the current component and the target component according to the calling parameter; call the component parameter of the target component in the routing module according to the communication path.
在本发明实施例中,可选的,通过该调用参数对应的内容,可以确定与当前组件的页面使用请求相匹配的目标组件,进而在路由模块中确定当前组件与目标组件之间的通信路径,通过该通信路径,当前组件能够按需调用目标组件的组件参数,该目标组件的组件参数用于当前组件打开与页面使用请求相匹配的目标页面。In the embodiment of the present invention, optionally, the target component that matches the page usage request of the current component can be determined through the content corresponding to the call parameter, and then the communication path between the current component and the target component can be determined in the routing module , through the communication path, the current component can call the component parameter of the target component on demand, and the component parameter of the target component is used for the current component to open the target page matching the page use request.
在本发明实施例中,可选的,请参照图2,图2展示了一种路由模块的结构示意图,如图2所示,路由模块相当于与当前组件以及目标组件都建立有关联关系的中间件,可以通过在路由模块中添加参数接口,当上述当前组件需要调用目标组件的组件参数时,可以通过对应的参数接口,获取目标组件的组件参数并返回一个目标实例。需要说明的是,图2中的当前组件以及目标组件只是示意性展示,实际使用中可以存在多个当前组件以及多个目标组件,共同与该路由模块建立有关联关系,因此,通过该路由模块可以实现组件间的解耦,使得只需要根据当前组件的调用参数包括的页面名称和/或页面标题即可对目标组件的组件参数进行调用,有利于提高组件化通信效率。In the embodiment of the present invention, optionally, please refer to FIG. 2. FIG. 2 shows a schematic structural diagram of a routing module. As shown in FIG. 2, the routing module is equivalent to establishing an association relationship with both the current component and the target component. For middleware, by adding a parameter interface in the routing module, when the above-mentioned current component needs to call the component parameters of the target component, it can obtain the component parameters of the target component through the corresponding parameter interface and return a target instance. It should be noted that the current component and the target component in Figure 2 are only schematically displayed, and there may be multiple current components and multiple target components in actual use, which are associated with the routing module. Therefore, through the routing module The decoupling between components can be realized, so that the component parameters of the target component can be called only according to the page name and/or page title included in the calling parameters of the current component, which is conducive to improving the efficiency of componentized communication.
可见,实施本发明实施例能够根据获取到的当前组件的页面使用请求,确定该当前组件的调用参数,进而根据该调用参数调用目标组件的组件参数以使当前组件打开与该页面使用请求相匹配的目标页面,能够提高组件之间的通信灵活性,进而提高组件化通信效率。It can be seen that implementing the embodiment of the present invention can determine the invocation parameters of the current component according to the obtained page usage request of the current component, and then call the component parameters of the target component according to the invocation parameters so that the opening of the current component matches the page usage request The target page can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication.
在一个可选的实施例中,该方法还包括:In an optional embodiment, the method also includes:
确定所有当前组件的组件数量,并判断组件数量是否大于预设数量阈值;Determine the component quantity of all current components, and determine whether the component quantity is greater than a preset quantity threshold;
当判断出组件数量大于预设数量阈值时,根据每个当前组件的页面使用请求,确定所有当前组件的参数调用顺序表;When it is judged that the number of components is greater than the preset number threshold, according to the page use request of each current component, determine the parameter call sequence table of all current components;
以及,上述步骤103根据通信路径,在路由模块中调用目标组件的组件参数,包括:And, the above step 103 calls the component parameters of the target component in the routing module according to the communication path, including:
根据参数调用顺序表以及通信路径,在路由模块中调用目标组件的组件参数。Call the component parameters of the target component in the routing module according to the parameter calling sequence table and the communication path.
在该可选的实施例中,可选的,该参数调用顺序表用于指示每个当前组件的参数调用顺序,举个例子,该参数调用顺序表可以指示当前组件A的调用顺序优先于当前组件B,当前组件B的调用顺序优先于当前组件C等。通过该参数调用顺序表对所有当前组件的调用顺序进行排列,能够分清不同调用操作的轻重缓急程度,使较为重要的调用操作能够优先执行,进而提高组件之间的通信灵活性。In this optional embodiment, optionally, the parameter calling order table is used to indicate the parameter calling order of each current component. For example, the parameter calling order table may indicate that the calling order of the current component A takes precedence over the current Component B, the calling order of the current component B takes precedence over the current component C and so on. Arranging the call sequence of all current components through the parameter call sequence table can distinguish the priority of different call operations, so that more important call operations can be executed first, thereby improving the flexibility of communication between components.
在该可选的实施例中,作为一个可选的实施方式,上述步骤判断组件数量是否大于预设数量阈值,包括:In this optional embodiment, as an optional implementation, the above step of judging whether the number of components is greater than a preset number threshold includes:
获取每个当前组件的组件数据量,并根据所有当前组件的组件数据量以及组件数量,计算出所有当前组件的平均组件数据量;Obtain the component data volume of each current component, and calculate the average component data volume of all current components based on the component data volume and the number of components of all current components;
判断该平均组件数据量是否大于预设平均数据量阈值;Judging whether the average component data volume is greater than a preset average data volume threshold;
当判断出该平均组件数据量大于该预设平均数据量阈值时,确定该组件数量大于预设数量阈值;When it is judged that the average component data volume is greater than the preset average data volume threshold, determine that the component quantity is greater than the preset quantity threshold;
当判断出该平均组件数据量小于该预设平均数据量阈值时,确定该组件数量小于预设数量阈值。When it is determined that the average component data volume is less than the preset average data volume threshold, it is determined that the component quantity is less than the preset quantity threshold.
在该可选的实施方式中,可选的,该预设平均数据量阈值可以由技术人员根据组件业务进行设定,也可以是组件化通信系统自动设定的,此处不作限定。可选的,不同当前组件对应的组件数据量大小不同,而每个当前组件的数据传输效率相同,当存在多个当前组件且每个当前组件的组件数据量都较大时,如果所有当前组件同时进行参数调用操作可能会导致路由模块调用繁忙;当存在多个当前组件且每个当前组件之间的组件数据量大小不一时,当所有当前组件同时进行参数调用操作时,组件数据量较小的当前组件会比组件数据量较大的当前组件提前完成参数调用操作,进而腾出多余调用空间避免路由模块调用繁忙。因此,可以将所有当前组件的平均组件数据量与预设平均数据量阈值作比较,进而确定所有当前组件的组件数量是否大于预设数量阈值。需要说明的是,该预设数量阈值可以按需进行动态浮动,即当所有当前组件的组件数据量普遍较大时,这些当前组件对应的预设数量阈值较低,反之同理。In this optional implementation manner, optionally, the preset average data volume threshold may be set by technicians according to component services, or may be automatically set by the componentized communication system, which is not limited here. Optionally, different current components correspond to different component data sizes, and the data transmission efficiency of each current component is the same. When there are multiple current components and the component data volume of each current component is large, if all current components Simultaneous parameter call operations may lead to busy routing module calls; when there are multiple current components and the component data size between each current component is different, when all current components perform parameter call operations at the same time, the component data volume is small The current component of the component will complete the parameter call operation earlier than the current component with a large amount of component data, thereby freeing up extra call space to avoid busy routing module calls. Therefore, the average component data volume of all current components may be compared with a preset average data volume threshold, and then it is determined whether the component numbers of all current components are greater than the preset number threshold. It should be noted that the preset quantity threshold can be dynamically floated as needed, that is, when the component data volume of all current components is generally large, the preset quantity threshold corresponding to these current components is relatively low, and vice versa.
可见,该可选的实施方式能够计算出所有当前组件的平均组件数据量,并将其与预设平均数据量阈值作比较,进而根据比较结果确定出所有当前组件的组件数量是否大于预设数量阈值,能够提高判断组件数量是否大于预设数量阈值的判断准确性,为后续步骤提供准确的数据基础,进而提高组件化通信效率。It can be seen that this optional implementation can calculate the average component data volume of all current components and compare it with the preset average data volume threshold, and then determine whether the component number of all current components is greater than the preset number according to the comparison result The threshold can improve the accuracy of judging whether the number of components is greater than the preset number threshold, provide an accurate data basis for subsequent steps, and improve the efficiency of componentized communication.
可见,该可选的实施例能够在判断出组件数量大于预设数量阈值时,确定所有当前组件的参数调用顺序表,进而根据该调用顺序表指示每个当前组件根据设定的调用顺序执行参数调用操作,能够进一步的提高组件间通信的灵活性,避免路由模块出现调用繁忙的现象,进而提高组件化通信效率。It can be seen that this optional embodiment can determine the parameter call sequence table of all current components when it is judged that the number of components is greater than the preset number threshold, and then instruct each current component to execute the parameter according to the set call sequence according to the call sequence table. The call operation can further improve the flexibility of communication between components, avoid the call busy phenomenon in the routing module, and improve the efficiency of component communication.
在另一个可选的实施例中,上述步骤根据每个当前组件的页面使用请求,确定所有当前组件的参数调用顺序表,包括:In another optional embodiment, the above steps determine the parameter call sequence table of all current components according to the page use request of each current component, including:
根据每个当前组件的页面使用请求,预测每个当前组件对应的页面数据量;According to the page usage request of each current component, predict the amount of page data corresponding to each current component;
根据所有页面数据量以及所有页面使用请求,确定每个当前组件的页面使用优先度;Determine the page usage priority of each current component according to the amount of all page data and all page usage requests;
根据所有当前组件的页面使用优先度,确定所有当前组件对应的调用顺序表。According to the page use priority of all current components, determine the calling sequence table corresponding to all current components.
在该可选的实施例中,可选的,由于页面使用请求用于指示当前组件需要打开的页面,打开不同的页面其对应的页面数据量不同,例如打开图片较多页面时所需的页面数据量往往比打开纯文字页面所需的页面数据量大。可选的,当需要打开页面的页面数据量较大时,其对应的页面使用优先度也会较高;反之当需要打开页面的页面数据量较小时,其对应的页面使用优先度也会较低,这有利于均衡所有当前组件执行完毕调用操作所需的时间,缩小所有当前组件对应的所有需要打开页面之间的打开间隔,进而提高组件化通信体验。In this optional embodiment, optionally, since the page usage request is used to indicate the page that the current component needs to open, the amount of page data corresponding to different pages is different when opening different pages, for example, the page required to open a page with many pictures The amount of data is often larger than the amount of page data required to open a plain text page. Optionally, when the amount of page data that needs to be opened is large, the corresponding page use priority will be higher; conversely, when the page data amount that needs to be opened is small, the corresponding page use priority will also be higher. Low, which is conducive to balancing the time required for all current components to complete the call operation, reducing the opening interval between all the pages that need to be opened corresponding to all current components, thereby improving the componentized communication experience.
在该可选的实施例中,可选的,根据每个当前组件的页面使用优先度,按照页面使用优先度从大到小对每个当前组件进行排列,当存在多个当前组件的页面组件优先度之间的差值小于预设差值时,将这些当前组件进行并列排序,这有利于提高调用顺序表的容错率。In this optional embodiment, optionally, according to the page usage priority of each current component, each current component is arranged according to the page usage priority from large to small, when there are multiple page components of the current component When the difference between the priorities is smaller than the preset difference, these current components are sorted side by side, which is beneficial to improve the fault tolerance rate of the call sequence table.
可见,该可选的实施例能够预测每个当前组件对应的页面数据量,从而确定出每个当前组件的页面使用优先度,进而确定出所有当前组件的调用顺序表,能够按需对每个当前组件的调用顺序进行排列,避免了路由模块出现调用繁忙的现象,从而提高组件之间的通信灵活性,进而进一步的提高组件化通信效率。It can be seen that this optional embodiment can predict the amount of page data corresponding to each current component, so as to determine the page usage priority of each current component, and then determine the call sequence table of all current components, and can call each current component as needed. The calling order of the current components is arranged to avoid the phenomenon of busy calling of the routing module, thereby improving the communication flexibility between components, and further improving the efficiency of componentized communication.
实施例二Embodiment two
请参阅图3,图3是本发明实施例公开的一种组件化通信控制方法的流程示意图。其中,图3所描述的组件化通信控制方法可以应用于日常需要进行组件化通信的场景中,本发明实施例不做限定。可选的,该方法可以由组件化通信系统实现,也可以是由对组件化通信流程进行处理的本地服务器或云端服务器等实现,其中,该组件化通信系统可以集成在组件化通信装置中,也可以独立于该组件化通信装置而存在,本发明实施例不做限定。如图3所示,该组件化通信控制方法可以应用于任一当前组件,该方法包括以下操作:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a componentized communication control method disclosed in an embodiment of the present invention. Wherein, the componentized communication control method described in FIG. 3 can be applied to scenarios where componentized communication is required in daily life, which is not limited in this embodiment of the present invention. Optionally, the method may be implemented by a componentized communication system, or by a local server or cloud server that processes the componentized communication process, wherein the componentized communication system may be integrated in a componentized communication device, It may also exist independently of the componentized communication device, which is not limited in this embodiment of the present invention. As shown in Figure 3, the componentized communication control method can be applied to any current component, and the method includes the following operations:
201、获取当前组件的页面使用请求。201. Obtain a page usage request of the current component.
202、根据当前组件的页面使用请求,确定与该页面使用请求相匹配的调用参数。202. According to the page usage request of the current component, determine the call parameter matching the page usage request.
203、根据调用参数,在路由模块预先创建的多个参数接口中查询是否存在与调用参数相匹配的目标参数接口。203. According to the call parameter, query whether there is a target parameter interface matching the call parameter among the multiple parameter interfaces pre-created by the routing module.
在本发明实施例中,可选的,路由模块预先创建的不同参数接口用于获取不同组件的组件标识以及组件变量,并将其封装成字典返回,即每个参数接口对应一个字典,字典用于存储相应参数接口的匹配组件的组件标识以及组件变量。可选的,该组件标识用于指示相应参数接口的匹配组件名,例如插画组件、视频播放组件等;该组件变量用于指示相应参数接口的匹配组件包括的所有参数,例如插画组件中的图片格式参数、图片色彩参数等。In the embodiment of the present invention, optionally, the different parameter interfaces pre-created by the routing module are used to obtain the component identifiers and component variables of different components, and encapsulate them into a dictionary for return, that is, each parameter interface corresponds to a dictionary, and the dictionary uses It is used to store the component ID and component variable of the matching component of the corresponding parameter interface. Optionally, the component identifier is used to indicate the matching component name of the corresponding parameter interface, such as illustration component, video playback component, etc.; the component variable is used to indicate all parameters included in the matching component of the corresponding parameter interface, such as the picture in the illustration component Format parameters, picture color parameters, etc.
204、当查询到存在目标参数接口时,通过该目标参数接口对应的目标字典,确定调用参数对应的目标组件,并根据目标字典以及预设反射机制,获取目标组件的类参数。204. When it is found that there is a target parameter interface, determine the target component corresponding to the call parameter through the target dictionary corresponding to the target parameter interface, and obtain the class parameter of the target component according to the target dictionary and the preset reflection mechanism.
在本发明实施例中,可选的,由于每个参数接口都对应有一个匹配组件以及一个字典,因此可以通过目标字典包括的组件标识,确定出目标参数接口对应的目标组件。可选的,该预设反射机制用于指示通过组件标识获取目标组件的类参数,举个例子,假设组件标识以字符串的形式呈现,基于上述假设,可以使用NSClassFromString(预设反射机制)获取目标组件的类参数。In the embodiment of the present invention, optionally, since each parameter interface corresponds to a matching component and a dictionary, the target component corresponding to the target parameter interface can be determined through the component identifier included in the target dictionary. Optionally, the default reflection mechanism is used to indicate that the class parameters of the target component are obtained through the component ID. For example, assuming that the component ID is presented in the form of a string, based on the above assumptions, NSClassFromString (preset reflection mechanism) can be used to obtain The class parameter of the target component.
205、根据目标组件的类参数,在路由模块中创建与该类参数相匹配的目标实例,并根据目标实例,确定当前组件与目标组件之间的通信路径。205. According to the class parameter of the target component, create a target instance matching the class parameter in the routing module, and determine a communication path between the current component and the target component according to the target instance.
在本发明实施例中,可选的,对获取到的目标组件的类参数进行类型强转之后,调用预设初始化方法,生成该类参数对应的目标实例,并将该目标实例作为当前组件与目标组件之间的通信路径,其中,目标实例包括多个实例方法,当前组件可以通过调用该目标实例的实例方法实现与目标组件之间的参数交互。In the embodiment of the present invention, optionally, after type-forcing the acquired class parameters of the target component, call the preset initialization method to generate the target instance corresponding to the class parameter, and use the target instance as the current component and A communication path between target components, wherein the target instance includes multiple instance methods, and the current component can realize parameter interaction with the target component by calling the instance methods of the target instance.
206、根据通信路径,在路由模块中调用目标组件的组件参数。206. Call the component parameter of the target component in the routing module according to the communication path.
在本发明实施例中,针对步骤201、步骤202以及步骤206的其它描述,请参照实施例一中针对步骤101-步骤103的详细描述,本发明实施例不再赘述。In the embodiment of the present invention, for other descriptions of step 201, step 202, and step 206, please refer to the detailed description of step 101-step 103 in the first embodiment, which will not be repeated in this embodiment of the present invention.
可见,实施本发明实施例能够根据获取到的当前组件的页面使用请求,确定该当前组件的调用参数,进而根据该调用参数调用目标组件的组件参数以使当前组件打开与该页面使用请求相匹配的目标页面,能够提高组件之间的通信灵活性,进而提高组件化通信效率;能够通过调用参数在查询到路由模块中存在目标参数接口时,根据该目标接口对应的目标字典以及预设反射机制,创建对应的目标实例以确定当前组件与目标组件之间的通信路径,能够提高当前组件与目标组件之间的通信准确性,进而提高组件化通信效率。It can be seen that implementing the embodiment of the present invention can determine the invocation parameters of the current component according to the obtained page usage request of the current component, and then call the component parameters of the target component according to the invocation parameters so that the opening of the current component matches the page usage request The target page can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication; when the target parameter interface is found in the routing module by calling parameters, according to the target dictionary corresponding to the target interface and the preset reflection mechanism , create a corresponding target instance to determine the communication path between the current component and the target component, which can improve the accuracy of communication between the current component and the target component, thereby improving the efficiency of componentized communication.
在一个可选的实施例中,每个参数接口对应的字典是由以下方式确定的:In an optional embodiment, the dictionary corresponding to each parameter interface is determined in the following manner:
获取参数接口对应的页面业务类型;Obtain the page business type corresponding to the parameter interface;
根据页面业务类型,确定参数接口的匹配组件,并建立参数接口与匹配组件之间的关联关系;According to the page business type, determine the matching component of the parameter interface, and establish the association relationship between the parameter interface and the matching component;
根据参数接口与匹配组件之间的关联关系,获取匹配组件的组件标识以及组件变量,并根据匹配组件的组件标识以及组件变量,确定参数接口对应的字典。According to the association relationship between the parameter interface and the matching component, the component identifier and the component variable of the matching component are obtained, and according to the component identifier and the component variable of the matching component, a dictionary corresponding to the parameter interface is determined.
在该可选的实施例中,可选的,该页面业务类型可以包括:聚合类、列表类、内容类、功能类等,其中,聚合类页面用于指示功能入口的聚合展示页面;列表类页面用于指示展示同类别的信息供用户筛选的页面;内容类页面用于指示展示具体信息的页面;功能类页面用于指示为了完成某个功能而存在的页面。可选的,由于打开不同页面业务类型的页面需要的参数类型不同,因此调用的匹配组件也各不相同,所以可以通过参数接口对应的页面业务类型建立该参数接口与其匹配组件之间的关联关系,通过该关联关系可以提高参数接口调用匹配组件的组件参数的准确性。In this optional embodiment, optionally, the page business type may include: aggregation class, list class, content class, function class, etc., wherein, the aggregation class page is used to indicate the aggregation display page of the function entry; the list class Pages are used to indicate pages that display information of the same category for users to filter; content pages are used to indicate pages that display specific information; functional pages are used to indicate pages that exist to complete a certain function. Optionally, since the parameter types required to open pages of different page business types are different, the matching components to be called are also different, so the association between the parameter interface and its matching components can be established through the page business type corresponding to the parameter interface , through the association relationship, the accuracy of component parameters of the parameter interface calling the matching component can be improved.
在该可选的实施例中,可选的,将匹配组件的组件标识以及组件变量进行封装,得到该匹配组件对应的字典,也即参数接口对应的字典。In this optional embodiment, optionally, the component identifier and component variables of the matching component are encapsulated to obtain a dictionary corresponding to the matching component, that is, a dictionary corresponding to the parameter interface.
在该可选的实施例中,作为一个可选的实施方式,在上述步骤建立参数接口与匹配组件之间的关联关系,包括:In this optional embodiment, as an optional implementation manner, establishing an association relationship between the parameter interface and the matching component in the above steps includes:
获取匹配组件的唯一组件标识;Get the unique component ID of the matching component;
根据预设加密算法以及唯一组件标识,生成该匹配组件相应参数接口的加密字符串;According to the preset encryption algorithm and the unique component identification, generate the encrypted string of the corresponding parameter interface of the matching component;
根据预设关联协议以及上述加密字符串,建立参数接口与匹配组件之间的关联关系。According to the preset association protocol and the above-mentioned encrypted string, an association relationship between the parameter interface and the matching component is established.
在该可选的实施方式中,可选的,匹配组件的唯一组件标识可以以字符串、哈希值、组件编号等形式呈现。可选的,当参数接口与匹配组件之间建立了关联关系之后,该参数接口只用于对接相应匹配组件,而无法对接其他不匹配组件。In this optional implementation manner, optionally, the unique component identifier of the matching component may be presented in the form of a character string, a hash value, a component number, and the like. Optionally, after an association relationship is established between the parameter interface and the matching component, the parameter interface is only used to connect to the corresponding matching component, and cannot connect to other non-matching components.
可见,该可选的实施方式能够生成参数接口对应的加密字符串,进而根据预设关联协议以及加密字符串,建立参数接口与匹配组件之间的关联关系,能够确保参数接口的唯一性,避免出现参数调用混乱的情况,有利于进一步的提高组件化通信效率。It can be seen that this optional implementation can generate an encrypted string corresponding to the parameter interface, and then establish an association relationship between the parameter interface and the matching component according to the preset association protocol and the encrypted string, which can ensure the uniqueness of the parameter interface and avoid The confusion of parameter calls is conducive to further improving the efficiency of componentized communication.
可见,该可选的实施例能够根据每个参数接口对应的页面业务类型,确定每个参数接口的匹配组件,从而建立每个参数接口与相应匹配组件之间的关联关系,进而确定出每个参数接口对应的字典,通过该字典实现调用导航作用,减少了多余的程序判断逻辑,有利于提高组件化通信效率。It can be seen that this optional embodiment can determine the matching component of each parameter interface according to the page business type corresponding to each parameter interface, so as to establish the association relationship between each parameter interface and the corresponding matching component, and then determine each The dictionary corresponding to the parameter interface, through which the call navigation function is realized, redundant program judgment logic is reduced, and it is beneficial to improve the efficiency of componentized communication.
在另一个可选的实施例中,上述目标实例包括多个实例方法;In another optional embodiment, the above object instance includes multiple instance methods;
以及,上述步骤206根据通信路径,在路由模块中调用目标组件的组件参数,包括:And, the above step 206 calls the component parameters of the target component in the routing module according to the communication path, including:
根据通信路径以及页面使用请求,确定目标实例中与页面使用请求相匹配的至少一个目标实例方法;Determine at least one target instance method matching the page use request in the target instance according to the communication path and the page use request;
通过预设注入机制,调用所有目标实例方法作为目标组件的组件参数。Through the default injection mechanism, all target instance methods are called as component parameters of the target component.
在该可选的实施例中,可选的,请参照图4,图4展示了另一种路由模块的结构示意图,如图4所示,当前组件的相应实例包括如图4所示的实例方法1、实例方法2以及实例方法3;目标组件对应的目标实例包括如图4所示的实例方法4、实例方法5以及实例方法6,需要说明的是,实例方法对应序号只用于区别不同的实例方法,并不是对实例包括的实例方法数量进行限定,在实际使用中,任一当前组件、任一目标组件的对应实例都包括至少一个实例方法。可选的,当前组件根据页面使用请求,在预先确定的通信路径中确定所需打开页面对应的至少一个目标实例方法,并通过预设注入机制对所有目标实例方法进行调用。举个例子,如图4所示,假设当前组件需要打开的页面是通过目标组件对应的实例方法4和实例方法5实现的,基于上述假设,当前组件可以通过其对应的信息转发功能,在路由模块中通过NSInvocation(预设注入机制)动态调用目标组件中的实例方法4和实例方法5。In this optional embodiment, optionally, please refer to FIG. 4, which shows a schematic structural diagram of another routing module. As shown in FIG. 4, the corresponding examples of the current component include the example shown in FIG. 4 Method 1, instance method 2, and instance method 3; target instances corresponding to target components include instance method 4, instance method 5, and instance method 6 as shown in Figure 4. It should be noted that the serial numbers corresponding to instance methods are only used to distinguish different The instance method of the instance method does not limit the number of instance methods included in the instance. In actual use, any corresponding instance of any current component or any target component includes at least one instance method. Optionally, the current component determines at least one target instance method corresponding to the page to be opened in a predetermined communication path according to the page use request, and calls all target instance methods through a preset injection mechanism. For example, as shown in Figure 4, it is assumed that the page that the current component needs to open is implemented through the instance method 4 and instance method 5 corresponding to the target component. Based on the above assumption, the current component can use its corresponding information forwarding function to route In the module, instance method 4 and instance method 5 in the target component are dynamically invoked through NSInvocation (preset injection mechanism).
可见,该可选的实施例能够根据通信路径以及页面使用请求,确定至少一个目标实例方法,进而根据预设注入机制,动态调用所有目标实例方法以打开目标页面,能够提高实例方法的选择准确性,有利于进一步的提高组件化通信效率。It can be seen that this optional embodiment can determine at least one target instance method according to the communication path and the page usage request, and then dynamically call all the target instance methods to open the target page according to the preset injection mechanism, which can improve the selection accuracy of the instance method , which is conducive to further improving the efficiency of componentized communication.
实施例三Embodiment three
请参阅图5,图5是本发明实施例公开的一种组件化通信控制装置的结构示意图。其中,图5所描述的组件化通信控制装置可以应用于日常需要进行组件化通信的场景中,本发明实施例不做限定。可选的,该装置可以由组件化通信系统实现,也可以是由对组件化通信流程进行处理的本地服务器或云端服务器等实现,其中,该组件化通信系统可以集成在组件化通信装置中,也可以独立于该组件化通信装置而存在,本发明实施例不做限定。如图5所示,该组件化通信控制装置可以包括:Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a componentized communication control device disclosed by an embodiment of the present invention. Wherein, the componentized communication control device described in FIG. 5 can be applied to scenarios where componentized communication is required in daily life, which is not limited in this embodiment of the present invention. Optionally, the device may be implemented by a componentized communication system, or by a local server or cloud server that processes the componentized communication process, wherein the componentized communication system may be integrated in the componentized communication device, It may also exist independently of the componentized communication device, which is not limited in this embodiment of the present invention. As shown in Figure 5, the componentized communication control device may include:
获取模块301,用于获取至少一个当前组件的页面使用请求;An acquisition module 301, configured to acquire a page use request of at least one current component;
调用模块302,用于根据任一当前组件的页面使用请求,确定与该页面使用请求相匹配的调用参数,调用参数用于指示当前组件对应的参数调用信息;根据调用参数,确定当前组件与目标组件之间的通信路径;根据通信路径,在路由模块中调用目标组件的组件参数,目标组件的组件参数用于当前组件打开与页面使用请求相匹配的目标页面。The call module 302 is used to determine the call parameter matching the page use request according to the page use request of any current component, and the call parameter is used to indicate the parameter call information corresponding to the current component; according to the call parameter, determine the current component and the target The communication path between components; according to the communication path, the component parameter of the target component is called in the routing module, and the component parameter of the target component is used for the current component to open the target page matching the page usage request.
可见,实施图5所描述的组件化通信控制装置能够根据获取到的当前组件的页面使用请求,确定该当前组件的调用参数,进而根据该调用参数调用目标组件的组件参数以使当前组件打开与该页面使用请求相匹配的目标页面,能够提高组件之间的通信灵活性,进而提高组件化通信效率。It can be seen that implementing the componentized communication control device described in FIG. 5 can determine the calling parameters of the current component according to the obtained page usage request of the current component, and then call the component parameters of the target component according to the calling parameters to make the current component open and This page uses the target page that matches the request, which can improve the flexibility of communication between components, thereby improving the efficiency of componentized communication.
在一个可选的实施例中,调用参数用于指示与页面使用请求相匹配的页面名称和/或页面标题;In an optional embodiment, the calling parameter is used to indicate the page name and/or page title matching the page use request;
以及,上述调用模块302根据调用参数,确定当前组件与目标组件之间的通信路径的方式具体包括:And, the method of determining the communication path between the current component and the target component according to the calling parameter by the calling module 302 specifically includes:
根据调用参数,在路由模块预先创建的多个参数接口中查询是否存在与调用参数相匹配的目标参数接口,其中,每个参数接口对应一个字典,字典用于存储相应参数接口的匹配组件的组件标识以及组件变量;According to the call parameters, query whether there is a target parameter interface that matches the call parameters among the multiple parameter interfaces pre-created by the routing module, where each parameter interface corresponds to a dictionary, and the dictionary is used to store the components of the matching components of the corresponding parameter interface Identity and component variables;
当查询到存在目标参数接口时,通过该目标参数接口对应的目标字典,确定调用参数对应的目标组件,并根据目标字典以及预设反射机制,获取目标组件的类参数;When the existence of the target parameter interface is found, the target component corresponding to the call parameter is determined through the target dictionary corresponding to the target parameter interface, and the class parameter of the target component is obtained according to the target dictionary and the preset reflection mechanism;
根据目标组件的类参数,在路由模块中创建与该类参数相匹配的目标实例,并根据目标实例,确定当前组件与目标组件之间的通信路径。According to the class parameter of the target component, create a target instance matching the class parameter in the routing module, and determine the communication path between the current component and the target component according to the target instance.
可见,实施图5所描述的组件化通信控制装置能够通过调用参数在查询到路由模块中存在目标参数接口时,根据该目标接口对应的目标字典以及预设反射机制,创建对应的目标实例以确定当前组件与目标组件之间的通信路径,能够提高当前组件与目标组件之间的通信准确性,进而提高组件化通信效率。It can be seen that implementing the componentized communication control device described in FIG. 5 can create a corresponding target instance according to the target dictionary corresponding to the target interface and the preset reflection mechanism to determine when the target parameter interface exists in the routing module by invoking parameters. The communication path between the current component and the target component can improve the accuracy of communication between the current component and the target component, thereby improving the efficiency of componentized communication.
在另一个可选的实施例中,每个参数接口对应的字典是由以下方式确定的:In another optional embodiment, the dictionary corresponding to each parameter interface is determined in the following manner:
获取参数接口对应的页面业务类型;Obtain the page business type corresponding to the parameter interface;
根据页面业务类型,确定参数接口的匹配组件,并建立参数接口与匹配组件之间的关联关系;According to the page business type, determine the matching component of the parameter interface, and establish the association relationship between the parameter interface and the matching component;
根据参数接口与匹配组件之间的关联关系,获取匹配组件的组件标识以及组件变量,并根据匹配组件的组件标识以及组件变量,确定参数接口对应的字典。According to the association relationship between the parameter interface and the matching component, the component identifier and the component variable of the matching component are obtained, and according to the component identifier and the component variable of the matching component, a dictionary corresponding to the parameter interface is determined.
可见,实施图5所描述的组件化通信控制装置能够根据每个参数接口对应的页面业务类型,确定每个参数接口的匹配组件,从而建立每个参数接口与相应匹配组件之间的关联关系,进而确定出每个参数接口对应的字典,通过该字典实现调用导航作用,减少了多余的程序判断逻辑,有利于提高组件化通信效率。It can be seen that implementing the componentized communication control device described in FIG. 5 can determine the matching component of each parameter interface according to the page service type corresponding to each parameter interface, so as to establish the association relationship between each parameter interface and the corresponding matching component, Furthermore, the dictionary corresponding to each parameter interface is determined, and the call navigation function is realized through the dictionary, which reduces redundant program judgment logic and is conducive to improving the efficiency of componentized communication.
在又一个可选的实施例中,目标实例包括多个实例方法;In yet another optional embodiment, the target instance includes multiple instance methods;
以及,上述调用模块302根据通信路径,在路由模块中调用目标组件的组件参数的方式具体包括:And, the way in which the calling module 302 calls the component parameters of the target component in the routing module according to the communication path specifically includes:
根据通信路径以及页面使用请求,确定目标实例中与页面使用请求相匹配的至少一个目标实例方法;Determine at least one target instance method matching the page use request in the target instance according to the communication path and the page use request;
通过预设注入机制,调用所有目标实例方法作为目标组件的组件参数。Through the default injection mechanism, all target instance methods are called as component parameters of the target component.
可见,实施图5所描述的组件化通信控制装置能够根据通信路径以及页面使用请求,确定至少一个目标实例方法,进而根据预设注入机制,动态调用所有目标实例方法以打开目标页面,能够提高实例方法的选择准确性,有利于进一步的提高组件化通信效率。It can be seen that implementing the componentized communication control device described in FIG. 5 can determine at least one target instance method according to the communication path and page usage request, and then dynamically call all target instance methods to open the target page according to the preset injection mechanism, which can improve the instance The selection accuracy of the method is conducive to further improving the efficiency of componentized communication.
在又一个可选的实施例中,如图6所示,该装置还包括:In yet another optional embodiment, as shown in Figure 6, the device further includes:
确定模块303,用于确定所有当前组件的组件数量;A determining module 303, configured to determine the component quantities of all current components;
判断模块304,用于判断组件数量是否大于预设数量阈值;A judging module 304, configured to judge whether the number of components is greater than a preset number threshold;
上述确定模块303,还用于当上述判断模块304判断出组件数量大于预设数量阈值时,根据每个当前组件的页面使用请求,确定所有当前组件的参数调用顺序表,参数调用顺序表用于指示每个当前组件的参数调用顺序;The above determination module 303 is also used to determine the parameter call sequence table of all current components according to the page use request of each current component when the above judgment module 304 judges that the number of components is greater than the preset number threshold, and the parameter call sequence table is used for Indicates the order of parameter calls for each current component;
以及,上述调用模块302根据通信路径,在路由模块中调用目标组件的组件参数的方式具体包括:And, the way in which the calling module 302 calls the component parameters of the target component in the routing module according to the communication path specifically includes:
根据参数调用顺序表以及通信路径,在路由模块中调用目标组件的组件参数。Call the component parameters of the target component in the routing module according to the parameter calling sequence table and the communication path.
可见,实施图6所描述的组件化通信控制装置能够在判断出组件数量大于预设数量阈值时,确定所有当前组件的参数调用顺序表,进而根据该调用顺序表指示每个当前组件根据设定的调用顺序执行参数调用操作,能够进一步的提高组件间通信的灵活性,避免路由模块出现调用繁忙的现象,进而提高组件化通信效率。It can be seen that implementing the componentized communication control device described in FIG. 6 can determine the parameter call sequence table of all current components when it is judged that the number of components is greater than the preset number threshold, and then instruct each current component according to the set call sequence table according to the call sequence table. Executing parameter call operations in the order of calls can further improve the flexibility of communication between components, avoid the phenomenon of busy calls in the routing module, and improve the efficiency of component-based communication.
在又一个可选的实施例中,上述确定模块303根据每个当前组件的页面使用请求,确定所有当前组件的参数调用顺序表的方式具体包括:In yet another optional embodiment, the above-mentioned determination module 303 determines the parameter call sequence table of all current components according to the page use request of each current component, specifically including:
根据每个当前组件的页面使用请求,预测每个当前组件对应的页面数据量;According to the page usage request of each current component, predict the amount of page data corresponding to each current component;
根据所有页面数据量以及所有页面使用请求,确定每个当前组件的页面使用优先度;Determine the page usage priority of each current component according to the amount of all page data and all page usage requests;
根据所有当前组件的页面使用优先度,确定所有当前组件对应的调用顺序表。According to the page use priority of all current components, determine the calling sequence table corresponding to all current components.
可见,实施图6所描述的组件化通信控制装置能够预测每个当前组件对应的页面数据量,从而确定出每个当前组件的页面使用优先度,进而确定出所有当前组件的调用顺序表,能够按需对每个当前组件的调用顺序进行排列,避免了路由模块出现调用繁忙的现象,从而提高组件之间的通信灵活性,进而进一步的提高组件化通信效率。It can be seen that implementing the componentized communication control device described in FIG. 6 can predict the amount of page data corresponding to each current component, thereby determining the page usage priority of each current component, and then determining the call sequence table of all current components, which can Arrange the call sequence of each current component as needed, avoiding the phenomenon of busy calls in the routing module, thereby improving the flexibility of communication between components, and further improving the efficiency of componentized communication.
实施例四Embodiment four
请参阅图7,图7是本发明实施例公开的又一种组件化通信控制装置的结构示意图。如图7所示,该组件化通信控制装置可以包括:Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of another componentized communication control device disclosed in an embodiment of the present invention. As shown in Figure 7, the componentized communication control device may include:
存储有可执行程序代码的存储器401;A memory 401 storing executable program codes;
与存储器401耦合的处理器402;a processor 402 coupled to the memory 401;
处理器402调用存储器401中存储的可执行程序代码,执行本发明实施例一或本发明实施例二所描述的组件化通信控制方法中的步骤。The processor 402 invokes the executable program code stored in the memory 401 to execute the steps in the componentized communication control method described in the first embodiment of the present invention or the second embodiment of the present invention.
实施例五Embodiment five
本发明实施例公开了一种计算机存储介质,该计算机存储介质存储有计算机指令,该计算机指令被调用时,用于执行本发明实施例一或本发明实施例二所描述的组件化通信控制方法中的步骤。The embodiment of the present invention discloses a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are called, it is used to execute the componentized communication control method described in the first embodiment of the present invention or the second embodiment of the present invention in the steps.
实施例六Embodiment six
本发明实施例公开了一种电子设备,该电子设备用于执行本发明实施例一或本发明实施例二所描述的组件化通信控制方法中的步骤。其中,可选的,该电子设备指互联网设备,例如电脑(台式电脑、掌上电脑、平板电脑、便携式电脑等)、智能手机(Android手机、iOS手机等)、智能手表以及移动互联网设备(Mobile Internet Devices,MID)等能够实现组件化通信的设备,此处不做限定。The embodiment of the present invention discloses an electronic device, which is used to execute the steps in the componentized communication control method described in the first embodiment of the present invention or the second embodiment of the present invention. Wherein, optionally, the electronic device refers to an Internet device, such as a computer (desktop computer, handheld computer, tablet computer, portable computer, etc.), a smart phone (Android phone, iOS phone, etc.), a smart watch, and a mobile Internet device (Mobile Internet Devices, MID) and other devices that can realize componentized communication are not limited here.
实施例七Embodiment seven
请查阅图8,图8是本发明实施例公开的一种组件化通信控制系统的结构示意图。如图8所示,该系统包括路由模块501及多个组件502,该系统用于执行本发明实施例一或本发明实施例二所描述的组件化通信控制方法。Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of a componentized communication control system disclosed in an embodiment of the present invention. As shown in FIG. 8 , the system includes a routing module 501 and multiple components 502 , and the system is used to implement the componentized communication control method described in Embodiment 1 or Embodiment 2 of the present invention.
实施例八Embodiment eight
本发明实施例公开了一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可操作来使计算机执行实施例一或实施例二中所描述的组件化通信控制方法中的步骤。The embodiment of the present invention discloses a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the computer program described in the first or second embodiment. Steps in the described componentized communication control method.
以上所描述的装置实施例仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
通过以上的实施例的具体描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(ErasableProgrammable Read Only Memory,EPROM)、一次可编程只读存储器(One-timeProgrammable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the above-mentioned technical solution essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM) , One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory , CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
最后应说明的是:本发明实施例公开的一种组件化通信控制方法及装置所揭露的仅为本发明较佳实施例而已,仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各项实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应的技术方案的本质脱离本发明各项实施例技术方案的精神和范围。Finally, it should be noted that a componentized communication control method and device disclosed in the embodiment of the present invention is only a preferred embodiment of the present invention, and is only used to illustrate the technical solution of the present invention, not to limit it; Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or perform equivalent replacements for some of the technical features; and These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310581114.9A CN116684500A (en) | 2023-05-22 | 2023-05-22 | Modularized communication control method, device, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310581114.9A CN116684500A (en) | 2023-05-22 | 2023-05-22 | Modularized communication control method, device, system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116684500A true CN116684500A (en) | 2023-09-01 |
Family
ID=87786431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310581114.9A Pending CN116684500A (en) | 2023-05-22 | 2023-05-22 | Modularized communication control method, device, system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116684500A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197812A (en) * | 2006-12-08 | 2008-06-11 | 华为技术有限公司 | A system and method for realizing page calling |
CN104081339A (en) * | 2012-01-27 | 2014-10-01 | 微软公司 | Managing data transfers over network connections based on priority and data usage plan |
CN107463395A (en) * | 2016-06-03 | 2017-12-12 | 腾讯科技(深圳)有限公司 | Component call method and device |
CN113296856A (en) * | 2020-07-13 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Page jump and route configuration method, equipment, system and storage medium |
CN114610404A (en) * | 2022-02-22 | 2022-06-10 | 深圳追一科技有限公司 | Component calling method and device based on application framework and computer equipment |
-
2023
- 2023-05-22 CN CN202310581114.9A patent/CN116684500A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197812A (en) * | 2006-12-08 | 2008-06-11 | 华为技术有限公司 | A system and method for realizing page calling |
CN104081339A (en) * | 2012-01-27 | 2014-10-01 | 微软公司 | Managing data transfers over network connections based on priority and data usage plan |
CN107463395A (en) * | 2016-06-03 | 2017-12-12 | 腾讯科技(深圳)有限公司 | Component call method and device |
CN113296856A (en) * | 2020-07-13 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Page jump and route configuration method, equipment, system and storage medium |
CN114610404A (en) * | 2022-02-22 | 2022-06-10 | 深圳追一科技有限公司 | Component calling method and device based on application framework and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113364853B (en) | Business service system, business request method and gateway equipment | |
CN111414407A (en) | Data query method, device, computer equipment and storage medium for database | |
CN110728455B (en) | Service processing method, service processing device, storage medium and electronic equipment | |
US20150143215A1 (en) | Method and system for accessing audio/video community virtual rooms | |
CN111541546B (en) | Multi-platform login method, device, equipment and readable medium | |
CN113282591B (en) | Authority filtering method, authority filtering device, computer equipment and storage medium | |
US20150264095A1 (en) | Web service push method and web service push server and web service providing server performing same | |
US20150012533A1 (en) | Method and client device for accessing webpage | |
CN111225018A (en) | Request message processing method and device and electronic equipment | |
CN109814896A (en) | Server upgrade method, device, computer system and readable storage system | |
CN108829753A (en) | A kind of information processing method and device | |
WO2015000342A1 (en) | Method and client device for accessing webpage | |
CN115391188A (en) | Scene test case generation method, device, equipment and storage medium | |
CN110908958B (en) | File processing method, device, terminal and storage medium | |
CN105763616A (en) | Resource downloading method and device | |
CN116684500A (en) | Modularized communication control method, device, system, electronic equipment and storage medium | |
CN115795544B (en) | File security attribute storage method and related device | |
CN115396329B (en) | Method, device, equipment and storage medium for determining target different network number | |
CN114168652B (en) | A smart contract interaction method, device, equipment and storage medium | |
CN116861383A (en) | Tag-based data management method, device, storage medium and electronic device | |
CN112861004B (en) | A method and device for determining rich media | |
US11573808B2 (en) | Methods of providing an integrated interface that includes a virtual mobile device | |
CN115544548A (en) | Internet financial wind control incoming system interface field checking and managing system and method | |
CN105378710A (en) | Identifying search matches and altered search results | |
US9189633B2 (en) | Download management method and device based on android browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |