CN110109712A - Service Component loading method, device, computer equipment and storage medium - Google Patents

Service Component loading method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110109712A
CN110109712A CN201910271551.4A CN201910271551A CN110109712A CN 110109712 A CN110109712 A CN 110109712A CN 201910271551 A CN201910271551 A CN 201910271551A CN 110109712 A CN110109712 A CN 110109712A
Authority
CN
China
Prior art keywords
component
service component
mark
service
resource pool
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
Application number
CN201910271551.4A
Other languages
Chinese (zh)
Inventor
刘洪博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910271551.4A priority Critical patent/CN110109712A/en
Publication of CN110109712A publication Critical patent/CN110109712A/en
Priority to PCT/CN2019/117330 priority patent/WO2020199594A1/en
Pending legal-status Critical Current

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application involves the data resource in big data, a kind of Service Component loading method, device, computer equipment and storage medium are provided.The described method includes: receiving Service Component load instruction, call instruction carries called side mark and component mark, and called side mark is searched in default access table according to load instruction;When finding called side mark in default access table, acquisition called side mark is corresponding can invocation component mark;When can be in invocation component mark there are when component mark, replication component identifies corresponding Service Component from default resource pool, Service Component is returned to terminal, so that terminal loads Service Component.It can be improved the development efficiency of business item using this method.

Description

Service Component loading method, device, computer equipment and storage medium
Technical field
This application involves Internet technical fields, set more particularly to a kind of Service Component loading method, device, computer Standby and storage medium.
Background technique
With the rapid development of Internet technology, enterprise is when carrying out business item exploitation, by using open source component It is developed, to save entreprise cost.But developer is usually required when using open source component according to business event The demand of project is carried out split source component and is adjusted, and even, can deeply understand that source code is further adjusted.It is adjusted it Open source component afterwards could carry out load use in business event project.But since the service logic for component of increasing income is multiple Miscellaneous, split source component re-starts adjustment, increases the business development time, influences the development efficiency of business event project.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of business that can be improved business item development efficiency Component loading method, device, computer equipment and storage medium.
A kind of Service Component loading method, which comprises
Service Component load instruction is received, call instruction carries called side mark and component mark, instructs according to load Called side mark is searched in default access table;
When finding called side mark in default access table, acquisition called side mark is corresponding can invocation component mark Know;
When can be in invocation component mark there are when component mark, replication component identifies corresponding business from default resource pool Service Component is returned to terminal by component, so that terminal loads Service Component.
In one of the embodiments, receive Service Component load instruction, call instruction carry called side mark and Component mark instructs before searching called side mark in default access table according to load, further includes:
Business scenario information is obtained, corresponding business realizing logical message is obtained according to business scenario information;
It receives order line to execute instruction, resolve command row is executed instruction according to order line, business is generated according to parsing result Business realizing logic is written in Service Component file, obtains Service Component by component file;
Component is identified and is associated in write-in resource pool with Service Component by formation component mark, obtains default resource pool.
Formation component identifies in one of the embodiments, and component is identified and is associated in write-in resource pool with Service Component, Obtain default resource pool, comprising:
The call number for obtaining Service Component generates corresponding group of Service Component when call number is greater than preset times Part mark;
Component mark is associated in write-in resource pool with Service Component by expansion interface, default resource pool is obtained.
It is identified in one of the embodiments, in formation component, component is identified and is associated with the default money of write-in with Service Component In the pond of source, after obtaining default resource pool, further includes:
It receives document command row to execute instruction, parsing document command row is executed instruction according to document command row, according to parsing As a result the interface message of each Service Component in resource pool is obtained;
Preset interface document template is obtained, the interface message of each Service Component is written in preset interface document template, Generate Service Component interface document.
In one of the embodiments, when can be multiple from default resource pool in invocation component mark there are when component mark Component processed identifies corresponding Service Component, Service Component is returned to terminal, so that terminal loads Service Component, comprising:
When in invocation component mark there are when component mark, component in default resource pool being obtained and identify corresponding service groups The status information of part;
When the status information of Service Component, which is, to call state, replication component identifies corresponding industry from default resource pool Business component, returns to terminal for Service Component, so that terminal loads Service Component.
In one of the embodiments, when can be multiple from default resource pool in invocation component mark there are when component mark Component processed identifies corresponding Service Component, Service Component is returned to terminal, so that after terminal loads Service Component, further includes:
Service Component more new command is received, more new command carries target element mark, according to Service Component more new command Obtain updated Service Component;
Target element is searched in default resource pool and identifies corresponding target service component, and target service component is replaced with Updated Service Component;
The object invocation side's mark for obtaining invocation target Service Component, identifies corresponding terminal to object invocation side and sends more Service Component after new, so that object invocation side, which identifies corresponding terminal, replaces with updated service groups for target service component Part.
A kind of Service Component loading device, described device include:
Identifier lookup module, for receiving Service Component load instruction, call instruction carries called side mark and component Mark searches called side mark according to load instruction in default access table;
Component identifier acquisition module, for obtaining called side mark when finding called side mark in default access table Know it is corresponding can invocation component mark;
Component loading module, for when can invocation component mark in there are when component mark, replicated from default resource pool Component identifies corresponding Service Component, Service Component is returned to terminal, so that terminal loads Service Component.
The Service Component loading device in one of the embodiments, further includes:
Information obtains module, for obtaining business scenario information, obtains corresponding business realizing according to business scenario information Logical message;
Component obtains module, executes instruction for receiving order line, executes instruction resolve command row according to order line, according to Parsing result generates Service Component file, and business realizing logic is written in Service Component file, Service Component is obtained;
Resource pool obtains module, identifies for formation component, and component is identified and is associated in write-in resource pool with Service Component, Obtain default resource pool.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Service Component load instruction is received, call instruction carries called side mark and component mark, instructs according to load Called side mark is searched in default access table;
When finding called side mark in default access table, acquisition called side mark is corresponding can invocation component mark Know;
When can be in invocation component mark there are when component mark, replication component identifies corresponding business from default resource pool Service Component is returned to terminal by component, so that terminal loads Service Component.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Service Component load instruction is received, call instruction carries called side mark and component mark, instructs according to load Called side mark is searched in default access table;
When finding called side mark in default access table, acquisition called side mark is corresponding can invocation component mark Know;
When can be in invocation component mark there are when component mark, replication component identifies corresponding business from default resource pool Service Component is returned to terminal by component, so that terminal loads Service Component.
Above-mentioned Service Component loading method, device, computer equipment and storage medium are referred to by receiving Service Component load It enables, call instruction carries called side mark and component mark, and called side mark is searched in default access table according to load instruction Know;When finding called side mark in default access table, acquisition called side mark is corresponding can invocation component mark;When can There are when component mark in invocation component mark, replication component identifies corresponding Service Component from default resource pool, by business Component returns to terminal, so that terminal loads Service Component.Developer is when carrying out business item exploitation, by from default resource Corresponding Service Component is obtained in pond, then carries out loading the Service Component in terminal, can directly be used the Service Component, be mentioned The high development efficiency of business item.
Detailed description of the invention
Fig. 1 is the application scenario diagram of Service Component loading method in one embodiment;
Fig. 2 is the flow diagram of Service Component loading method in one embodiment;
Fig. 3 is the flow diagram that default resource pool is obtained in one embodiment;
Fig. 4 is the flow diagram that default resource pool is obtained in another embodiment;
Fig. 5 is the flow diagram that Service Component interface document is generated in one embodiment;
Fig. 6 is the flow diagram that Service Component status information is obtained in one embodiment;
Fig. 7 is the flow diagram that Service Component in default resource pool is updated in one embodiment;
Fig. 8 is the structural block diagram of Service Component loading device in one embodiment;
Fig. 9 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Service Component loading method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, eventually End 102 is communicated by network with server 104.The Service Component load that server 104 receives the transmission of terminal 102 refers to It enables, call instruction carries called side mark and component mark, and called side mark is searched in default access table according to load instruction Know;When server 104 finds called side mark in default access table, acquisition called side mark is corresponding can invocation component Mark;When can be in invocation component mark there are when component mark, the replication component mark from default resource pool of server 104 be corresponded to Service Component, by Service Component return terminal 102 so that terminal 102 load Service Component.Wherein, terminal 102 can with but not It is limited to be various personal computers, laptop, smart phone, tablet computer and portable wearable device, server 104 It can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of Service Component loading method, it is applied to Fig. 1 in this way In server for be illustrated, comprising the following steps:
S202 receives Service Component load instruction, and call instruction carries called side mark and component mark, according to load Called side mark is searched in instruction in default access table.
Wherein, default access table refers to that is pre-set is used to carry out the tables of data of Authority Verification.Called side identifies Refer to the user identifier that call Service Component.Component mark is used for the corresponding Service Component of unique identification.
Specifically, server receives the Service Component load instruction of terminal transmission, parses Service Component load instruction, The component mark for obtaining the called side mark of instruction carrying and being called.Server instructs progress permission to test according to the load Card, verifying called side, which identifies whether to have permission, to be called.Called side mark is searched in the authority list pre-set.
S204, when finding called side mark in default access table, acquisition called side mark is corresponding to call group Part mark.
Wherein, can invocation component mark refer to corresponding group of component for being called by the called side of verifying mark Part mark.
Specifically, when server can find called side mark in default access table, illustrate to the called side mark The Authority Verification of knowledge passes through, at this point, server obtained in default access table called side mark it is corresponding can invocation component mark. It is identified when server does not find called side in default access table, at this point, the Authority Verification of called side mark does not pass through, this When server the prompt that corresponding terminal returns to not permission can be identified to called side.
S206, when can be in invocation component mark there are when component mark, replication component mark be corresponded to from default resource pool Service Component, Service Component is returned into terminal, so that terminal loads Service Component.
Wherein, default resource pool is pre-set for store developer used in history development process Component resources, service resources etc..
Specifically, server can matching parsing obtains in invocation component mark component mark, when one can be matched to Cause component mark when, illustrate this can invocation component mark in there are component marks.At this point, server is identified according to the component The component is replicated in default resource pool and identifies corresponding Service Component, and obtained Service Component is returned to called side and identified by server Corresponding terminal loads the Service Component into operation flow when terminal receives the Service Component of server transmission, to complete The exploitation of project.In one embodiment, the available multiple Service Component into default resource pool of developer are more by this A Service Component is combined, and is generated the Service Component collection for meeting current exploitation business, is loaded the Service Component collection, can reduce Development time faster completes development task.
Above-mentioned Service Component loading method, by receiving Service Component load instruction, call instruction carries called side mark Know and component identifies, called side mark is searched in default access table according to load instruction, is found when in default access table When called side identifies, acquisition called side mark is corresponding can invocation component mark.When can invocation component mark in there are component marks When knowledge, replication component identifies corresponding Service Component from default resource pool, Service Component is returned to terminal, so that terminal loads Service Component.Developer is when carrying out business item exploitation, by obtaining corresponding Service Component from default resource pool, so It carries out loading the Service Component in terminal afterwards, can directly use the Service Component, improve the development efficiency of business item.
In one embodiment, as shown in figure 3, before step S202, that is, Service Component load instruction is being received, called Instruction carries called side mark and component mark, before searching called side mark in default access table according to load instruction, It further comprises the steps of:
S302 obtains business scenario information, obtains corresponding business realizing logical message according to business scenario information.
Wherein, business scenario information refers to the information needed when the business will be developed under corresponding usage scenario, For example a button is developed, size of the button under different business scenarios is different.Get wanting for the button Size under the business scenario of exploitation.Business realizing logical message refers to the logical code for realizing the business function.
Specifically, business scenario information is got, corresponding business realizing logical message is obtained according to business scenario information. Such as the additional loan in loan transaction, it obtains the addition and borrows business information, obtain adding according to addition loan business information and borrow industry Pragmatic existing logical code.
S304 receives order line and executes instruction, executes instruction resolve command row according to order line, generated according to parsing result Business realizing logic is written in Service Component file, obtains Service Component by Service Component file.
Specifically, order line is received by command-line tool, which generates order for executive module.Server The order line is received to execute instruction, according to resolve command row, obtain the Service Component by code file, obtain service groups Part file.Then business realizing logical code is written in the Service Component file, obtains Service Component.For example, passing through order Row generates additional loan Service Component.The Service Component comprising multiple business scenario interfaces can be generated in one embodiment, lead to Cross obtain different business scene under business realization logical code, by the business realizing logical code under each different scenes into Row encapsulates and provides business scenario corresponding scene interface.When it is desired to be used, it is connect by obtaining the corresponding scene of business scenario Mouthful, which is called by the scene interface, so that it may directly carry out using convenient and efficient.
Component is identified and is associated in write-in resource pool with Service Component by S306, formation component mark, obtains default resource Pond.
Specifically, formation component identifies, and component is identified and is associated in write-in resource pool with Service Component, developer passes through By in different Service Component write-in resource pools in history development process, default resource pool has just been obtained.
In the above-described embodiments, by obtaining business scenario information, it is real that corresponding business is obtained according to business scenario information Existing logical message, receives order line and executes instruction, execute instruction resolve command row according to order line, generates industry according to parsing result Business component file, business realizing logic is written in Service Component file, Service Component is obtained.Formation component mark, by component Mark is associated in write-in resource pool with Service Component, obtains default resource pool.It is long-pending in history development process by developer Service Component is written in resource pool tired Service Component, obtains default resource pool, and subsequent development personnel is facilitated to carry out using mentioning The development efficiency of high subsequent development personnel reduces exploitation threshold.
In one embodiment, as shown in figure 4, step S306, i.e. formation component are identified, by component mark and Service Component In association write-in resource pool, default resource pool is obtained, comprising steps of
S402 obtains the call number of Service Component, and when call number is greater than preset times, it is corresponding to generate Service Component Component mark.
Specifically, server passes through the call number of the calling log acquisition Service Component of Service Component, when the service groups When the call number of part is greater than preset times, the corresponding component mark of the Service Component is generated.
Component mark is associated in write-in resource pool with Service Component by expansion interface, obtains default resource pool by S404.
Wherein, expansion interface is used to satisfactory Service Component resource pool is written.
Specifically, component is identified and is associated in write-in resource pool with Service Component by expansion interface by server, is obtained pre- If resource pool.Such as: from component, the component package are patrolled based on verifications business such as the common identification card number verifyings of loan transaction Volume.It requires to use the component in different loan scenes.Then the call number of the component is greater than preset times, by the from Component is added in resource pool, convenient for the use of subsequent development personnel.
In through the foregoing embodiment, the call number of Service Component is obtained, when call number is greater than preset times, is generated Component mark is associated in write-in resource pool with Service Component by expansion interface, is obtained by the corresponding component mark of Service Component Default resource pool can save resource pool space resources, and facilitate subsequent make in the Service Component write-in resource pool of height multiplexing With.
In one embodiment, as shown in figure 5, after step S306, i.e., formation component identify, by component mark and Service Component association is written in default resource pool, after obtaining default resource pool, further comprises the steps of:
S502 receives document command row and executes instruction, and executes instruction parsing document command row according to document command row, according to Parsing result obtains the interface message of each Service Component in resource pool.
Wherein, interface message refers to the specifying information of the Service Component interface, including interface name, interface requests parameter, Interface call method and interface return to field etc..
Specifically, server receives document command row and executes instruction, and executes instruction parsing document according to document command row Order line obtains the interface message of each Service Component in resource pool according to parsing result.
S504 obtains preset interface document template, and preset interface document mould is written in the interface message of each Service Component In plate, Service Component interface document is generated.
Wherein, preset interface document template refers to sets interface document template in the server in advance.
Specifically, server obtains the interface document template pre-set, by the interface of obtained each Service Component Information is written in preset interface document template, generates Service Component interface document.
In the above-described embodiments, it is executed instruction by receiving document command row, parsing is executed instruction according to document command row Document command row, the interface message of each Service Component in resource pool is obtained according to parsing result, and server acquisition is preset Good interface document template generates industry in the interface message write-in preset interface document template of obtained each Service Component Business component interface document, checks Service Component interface document when developing convenient for subsequent development personnel, to call business Component.
In one embodiment, as shown in fig. 6, step S206, i.e., when can in invocation component mark there are when component mark, Replication component identifies corresponding Service Component from default resource pool, Service Component is returned to terminal, so that terminal loads business Component, comprising steps of
S602, when in invocation component mark there are when component mark, it is corresponding that component mark in default resource pool can be obtained The status information of Service Component.
Wherein, the status information of Service Component refers to Service Component state current in resource pool, including can call With can not call.
Specifically, when can be in invocation component mark there are when component mark, server obtains component mark in default resource pool Know the status information of corresponding Service Component.Component is found from default resource pool and identifies corresponding Service Component, is got The corresponding status information of Service Component.
S604, when the status information of Service Component, which is, to call state, the replication component mark pair from default resource pool Service Component is returned to terminal by the Service Component answered, so that terminal loads Service Component.
Specifically, when server detects that the status information of the Service Component is that can call state, from default resource pool Middle replication component identifies corresponding Service Component, Service Component is returned to terminal, so that terminal loads Service Component.Work as server The status information for detecting the Service Component is when can not call state, to return to the not available prompt of the Service Component to terminal.
In the above-described embodiments, when in invocation component mark there are when component mark, component in default resource pool can be obtained The status information for identifying corresponding Service Component, when the status information of Service Component, which is, to call state, from default resource pool Middle replication component identifies corresponding Service Component, Service Component is returned to terminal, so that terminal loads Service Component.
In one embodiment, as shown in fig. 7, after step S206, i.e., when can invocation component mark in there are components When mark, replication component identifies corresponding Service Component from default resource pool, Service Component is returned to terminal, so that terminal adds After carrying Service Component, further comprise the steps of:
S702, receives Service Component more new command, and more new command carries target element mark, updated according to Service Component Instruction obtains updated Service Component.
Wherein, target element mark refers to the component mark for the Service Component that needs are updated.
Specifically, server receives Service Component more new command, which carries target element mark, according to industry Component more new command of being engaged in obtains updated Service Component.
S704 searches target element in default resource pool and identifies corresponding target service component, by target service component Replace with updated Service Component.
Wherein, target service component refers to Service Component to be updated in bathroom resource pool.
Specifically, server searches target element in default resource pool and identifies corresponding target service component, by target Service Component replaces with updated Service Component.Target service component is deleted from default resource pool, then will be updated Service Component afterwards is written in default resource pool.Alternatively, the method using incremental update is updated target service component, i.e., The content that target service component needs to update is got, the contents of the section is replaced with into updated content, after obtaining update Service Component.
S706 obtains object invocation side's mark of invocation target Service Component, identifies corresponding terminal to object invocation side Send updated Service Component so that object invocation side identify corresponding terminal target service component is replaced with it is updated Service Component.
Wherein, object invocation side's mark refers to the mark of the corresponding called side of target service component.
Specifically, server obtains object invocation side's mark of invocation target Service Component, to object invocation side's mark pair The terminal answered sends updated Service Component, and terminal receives the updated Service Component of server transmission, by target industry Business component replaces with updated Service Component.
In the above-described embodiments, by receiving Service Component more new command, more new command carries target element mark, root Updated Service Component is obtained according to Service Component more new command, target element is searched in default resource pool and identifies corresponding mesh Service Component is marked, target service component is replaced with into updated Service Component.Obtain the target tune of invocation target Service Component With square mark, corresponding terminal is identified to object invocation side and sends updated Service Component, so that object invocation side's mark pair Target service component is replaced with updated Service Component by the terminal answered, the service groups for the default resource pool that can timely update Part facilitates subsequent development personnel to use convenient for optimizing to Service Component.
It should be understood that although each step in the flow chart of Fig. 2-7 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-7 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 8, providing a kind of Service Component loading device 800, comprising: identifier lookup Module 802, component identifier acquisition module 804 and component loading module 806, in which:
Identifier lookup module 802, for receiving Service Component load instruction, call instruction carries called side mark and group Part mark searches called side mark according to load instruction in default access table;
Component identifier acquisition module 804, for obtaining called side when finding called side mark in default access table Identify it is corresponding can invocation component mark;
Component loading module 806, for when can be multiple from default resource pool in invocation component mark there are when component mark Component processed identifies corresponding Service Component, Service Component is returned to terminal, so that terminal loads Service Component.
In one embodiment, Service Component loading device 800, further includes:
Information obtains module, for obtaining business scenario information, obtains corresponding business realizing according to business scenario information Logical message;
Component obtains module, executes instruction for receiving order line, executes instruction resolve command row according to order line, according to Parsing result generates Service Component file, and business realizing logic is written in Service Component file, Service Component is obtained;
Resource pool obtains module, identifies for formation component, and component is identified and is associated in write-in resource pool with Service Component, Obtain default resource pool.
In one embodiment, resource pool obtains module, comprising:
Number acquiring unit, when call number is greater than preset times, is generated for obtaining the call number of Service Component The corresponding component mark of Service Component;
Component writing unit is obtained for component mark to be associated in write-in resource pool with Service Component by expansion interface To default resource pool.
In one embodiment, Service Component loading device 800, further includes:
Interface message obtains module, executes instruction for receiving document command row, executes instruction solution according to document command row Document command row is analysed, the interface message of each Service Component in resource pool is obtained according to parsing result;
Document creation module the interface message of each Service Component is written pre- for obtaining preset interface document template If in interface document template, generating Service Component interface document.
In one embodiment, component loading module 806, comprising:
State acquiring unit, for when in invocation component mark there are when component mark, group in default resource pool can be obtained Part identifies the status information of corresponding Service Component;
Component call unit, for being answered from default resource pool when the status information of Service Component, which is, to call state Component processed identifies corresponding Service Component, Service Component is returned to terminal, so that terminal loads Service Component.
In one embodiment, Service Component loading device 800, further includes:
Command reception module is updated, for receiving Service Component more new command, more new command carries target element mark, Updated Service Component is obtained according to Service Component more new command;
Update module identifies corresponding target service component for searching target element in default resource pool, by target Service Component replaces with updated Service Component;
Component sending module, the object invocation side for obtaining invocation target Service Component identify, mark to object invocation side Know corresponding terminal and send updated Service Component, so that object invocation side identifies corresponding terminal and replaces target service component It is changed to updated Service Component.
Specific about Service Component loading device limits the limit that may refer to above for Service Component loading method Fixed, details are not described herein.Modules in above-mentioned Service Component loading device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 9.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used for storage service module data.The network interface of the computer equipment is used to pass through with external terminal Network connection communication.To realize a kind of Service Component loading method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, which performs the steps of when executing computer program receives Service Component load instruction, call instruction Called side mark and component mark are carried, called side mark is searched in default access table according to load instruction;When default When finding called side mark in authority list, acquisition called side mark is corresponding can invocation component mark;When can invocation component mark There are when component mark in knowledge, replication component identifies corresponding Service Component from default resource pool, and Service Component is returned eventually End, so that terminal loads Service Component.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains business scenario information, Corresponding business realizing logical message is obtained according to business scenario information;It receives order line to execute instruction, be executed according to order line Resolve command row is instructed, Service Component file is generated according to parsing result, business realizing logic is written in Service Component file, Obtain Service Component;Component is identified and is associated in write-in resource pool with Service Component by formation component mark, obtains default resource Pond.
In one embodiment, the tune for obtaining Service Component is also performed the steps of when processor executes computer program The corresponding component mark of Service Component is generated when call number is greater than preset times with number;By component mark and service groups Part is associated in write-in resource pool by expansion interface, obtains default resource pool.
In one embodiment, reception document command row is also performed the steps of when processor executes computer program to hold Row instruction executes instruction parsing document command row according to document command row, obtains each business in resource pool according to parsing result The interface message of component;Preset interface document template is obtained, preset interface document is written into the interface message of each Service Component In template, Service Component interface document is generated.
In one embodiment, processor execute computer program when also perform the steps of when can invocation component mark In there are when component mark, obtain the status information that component in default resource pool identifies corresponding Service Component;Work as Service Component Status information be when can call state, replication component identifies corresponding Service Component from default resource pool, by Service Component Terminal is returned to, so that terminal loads Service Component.
In one embodiment, it is also performed the steps of when processor executes computer program and receives Service Component update Instruction, more new command carry target element mark, obtain updated Service Component according to Service Component more new command;Pre- If searching target element in resource pool identifies corresponding target service component, target service component is replaced with into updated business Component;The object invocation side's mark for obtaining invocation target Service Component, identifies corresponding terminal to object invocation side and sends update Service Component afterwards, so that object invocation side, which identifies corresponding terminal, replaces with updated service groups for target service component Part.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor receives Service Component load instruction, and call instruction carries called side mark Know and component identifies, called side mark is searched in default access table according to load instruction;It is found when in default access table When called side identifies, acquisition called side mark is corresponding can invocation component mark;When can invocation component mark in there are component marks When knowledge, replication component identifies corresponding Service Component from default resource pool, Service Component is returned to terminal, so that terminal loads Service Component.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains business scenario letter Breath, obtains corresponding business realizing logical message according to business scenario information;It receives order line to execute instruction, be held according to order line Row instruction resolve command row, generates Service Component file according to parsing result, and Service Component file is written in business realizing logic In, obtain Service Component;Component is identified and is associated in write-in resource pool with Service Component by formation component mark, obtains default money Source pond.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains Service Component Call number generates the corresponding component mark of Service Component when call number is greater than preset times;By component mark and business Component is associated in write-in resource pool by expansion interface, obtains default resource pool.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives document command row It executes instruction, parsing document command row is executed instruction according to document command row, each industry in resource pool is obtained according to parsing result The interface message of business component;Preset interface document template is obtained, by the interface message write-in preset interface text of each Service Component In shelves template, Service Component interface document is generated.
In one embodiment, it also performs the steps of when computer program is executed by processor when can invocation component mark There are when component mark, obtain the status information preset component in resource pool and identify corresponding Service Component in knowledge;Work as service groups The status information of part is when can call state, and replication component identifies corresponding Service Component from default resource pool, by service groups Part returns to terminal, so that terminal loads Service Component.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives Service Component more New command, more new command carry target element mark, obtain updated Service Component according to Service Component more new command;? Target element is searched in default resource pool and identifies corresponding target service component, and target service component is replaced with into updated industry Business component;The object invocation side's mark for obtaining invocation target Service Component, identifies corresponding terminal to object invocation side and sends more Service Component after new, so that object invocation side, which identifies corresponding terminal, replaces with updated service groups for target service component Part.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of Service Component loading method, which comprises
Service Component load instruction is received, the call instruction carries called side mark and component mark, according to the calling The called side mark is searched in instruction in default access table;
When finding called side mark in the default access table, acquisition called side mark is corresponding can invocation component Mark;
In invocation component mark there are when component mark, component mark pair can be replicated from default resource pool when described The Service Component is returned to terminal, so that Service Component described in the terminal loads by the Service Component answered.
2. being instructed the method according to claim 1, wherein being loaded in the reception Service Component, the calling Instruction carries called side mark and component mark, searches the called side mark in default access table according to the call instruction Before knowledge, further includes:
Business scenario information is obtained, corresponding business realizing logical message is obtained according to the business scenario information;
It receives order line to execute instruction, the parsing order line is executed instruction according to the order line, according to the parsing result Service Component file is generated, the business realizing logic is written in the Service Component file, Service Component is obtained;
The component is identified and is associated in write-in resource pool with the Service Component, obtains the default money by formation component mark Source pond.
3. according to the method described in claim 2, the component is identified and institute it is characterized in that, the formation component identifies It states in Service Component association write-in resource pool, the default resource pool, comprising:
The call number for obtaining the Service Component generates the Service Component when the call number is greater than preset times Corresponding component mark;
Component mark is associated in write-in resource pool with the Service Component by expansion interface, the default resource pool.
4. according to the method described in claim 2, it is characterized in that, the formation component identify, by the component mark and Service Component association is written in default resource pool, after obtaining default resource pool, further includes:
It receives document command row to execute instruction, the parsing document command row is executed instruction according to the document command row, according to Parsing result obtains the interface message of each Service Component in the resource pool;
Preset interface document template is obtained, the preset interface document template is written into the interface message of each Service Component In, generate Service Component interface document.
5. the method according to claim 1, wherein when it is described can there are the component marks in invocation component mark When knowledge, the component being replicated from default resource pool and identifies corresponding Service Component, the Service Component is returned into terminal, so that Service Component described in the terminal loads, comprising:
When described in invocation component mark there are when component mark, the mark of component described in default resource pool can be obtained and corresponded to Service Component status information;
When the status information of the Service Component, which is, to call state, the component mark is replicated from default resource pool and is corresponded to Service Component, by the Service Component return terminal so that Service Component described in the terminal loads.
6. the method according to claim 1, wherein it is described when it is described can there are described group in invocation component mark When part identifies, the component being replicated from default resource pool and identifies corresponding Service Component, the Service Component is returned into terminal, So that after Service Component described in the terminal loads, further includes:
Service Component more new command is received, the more new command carries target element mark, updates according to the Service Component Instruction obtains updated Service Component;
The target element is searched in the default resource pool and identifies corresponding target service component, by the target service group Part replaces with updated Service Component;
The object invocation side's mark for calling the target service component is obtained, the object invocation side Xiang Suoshu identifies corresponding terminal hair The updated Service Component is sent, so that the object invocation side identifies corresponding terminal and replaces with target service component more Service Component after new.
7. a kind of Service Component loading device, which is characterized in that described device includes:
Identifier lookup module, for receiving Service Component load instruction, the call instruction carries called side mark and component Mark searches the called side mark according to the call instruction in default access table;
Component identifier acquisition module, for obtaining and calling when finding called side mark in the default access table Side's mark is corresponding can invocation component mark;
Component loading module, for when it is described can invocation component mark in there are the component mark when, from default resource pool It replicates the component and identifies corresponding Service Component, the Service Component is returned into the terminal, so that industry described in terminal loads Business component.
8. device according to claim 7, which is characterized in that the Service Component loading device, further includes:
Information obtains module, for obtaining business scenario information, obtains corresponding business realizing according to the business scenario information Logical message;
Component obtains module, executes instruction for receiving order line, executes instruction the parsing order line according to the order line, Service Component file is generated according to the parsing result, the business realizing logic is written in the Service Component file, is obtained To Service Component;
Resource pool obtains module, identifies for formation component, and the component is identified and is associated with write-in resource with the Service Component Chi Zhong obtains the default resource pool.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
CN201910271551.4A 2019-04-04 2019-04-04 Service Component loading method, device, computer equipment and storage medium Pending CN110109712A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910271551.4A CN110109712A (en) 2019-04-04 2019-04-04 Service Component loading method, device, computer equipment and storage medium
PCT/CN2019/117330 WO2020199594A1 (en) 2019-04-04 2019-11-12 Service component loading method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910271551.4A CN110109712A (en) 2019-04-04 2019-04-04 Service Component loading method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110109712A true CN110109712A (en) 2019-08-09

Family

ID=67485166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910271551.4A Pending CN110109712A (en) 2019-04-04 2019-04-04 Service Component loading method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110109712A (en)
WO (1) WO2020199594A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543327A (en) * 2019-09-06 2019-12-06 深圳前海环融联易信息科技服务有限公司 Service component multiplexing method and device, computer equipment and storage medium
CN111367891A (en) * 2020-03-30 2020-07-03 中国建设银行股份有限公司 Method, device and equipment for calling modeling intermediate data and readable storage medium
WO2020199594A1 (en) * 2019-04-04 2020-10-08 平安科技(深圳)有限公司 Service component loading method and apparatus, and computer device and storage medium
CN112635034A (en) * 2020-12-30 2021-04-09 微医云(杭州)控股有限公司 Service authority system, authority distribution method, electronic device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472903B (en) * 2021-09-02 2021-11-16 腾讯科技(深圳)有限公司 Data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234290A1 (en) * 2006-03-31 2007-10-04 Benzi Ronen Interactive container of development components and solutions
CN107577459A (en) * 2017-08-21 2018-01-12 杰为软件系统(深圳)有限公司 A kind of towed cross-platform development system and method based on modularization
CN108984160A (en) * 2018-06-21 2018-12-11 中国石油集团安全环保技术研究院有限公司 Information-based Quick Development Framework and method based on modularization
CN109039767A (en) * 2018-08-29 2018-12-18 广汉川友机械租赁有限公司 A kind of distributed resource management and deployment platform

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1306430C (en) * 2002-12-31 2007-03-21 上海科泰世纪科技有限公司 User self-defining event mechanism based on structure
CN102857524B (en) * 2011-06-28 2016-03-09 腾讯科技(深圳)有限公司 A kind of method of invocation component and device
CN102930184B (en) * 2012-10-19 2015-11-25 华为技术有限公司 A kind of functional module loading method and device
CN108958730B (en) * 2017-08-23 2022-04-19 北京五八信息技术有限公司 Application program component sharing method and device, terminal device and readable storage medium
CN109254765B (en) * 2018-08-22 2023-08-25 平安科技(深圳)有限公司 Timing task management method, device, computer equipment and storage medium
CN110109712A (en) * 2019-04-04 2019-08-09 平安科技(深圳)有限公司 Service Component loading method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234290A1 (en) * 2006-03-31 2007-10-04 Benzi Ronen Interactive container of development components and solutions
CN107577459A (en) * 2017-08-21 2018-01-12 杰为软件系统(深圳)有限公司 A kind of towed cross-platform development system and method based on modularization
CN108984160A (en) * 2018-06-21 2018-12-11 中国石油集团安全环保技术研究院有限公司 Information-based Quick Development Framework and method based on modularization
CN109039767A (en) * 2018-08-29 2018-12-18 广汉川友机械租赁有限公司 A kind of distributed resource management and deployment platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020199594A1 (en) * 2019-04-04 2020-10-08 平安科技(深圳)有限公司 Service component loading method and apparatus, and computer device and storage medium
CN110543327A (en) * 2019-09-06 2019-12-06 深圳前海环融联易信息科技服务有限公司 Service component multiplexing method and device, computer equipment and storage medium
CN111367891A (en) * 2020-03-30 2020-07-03 中国建设银行股份有限公司 Method, device and equipment for calling modeling intermediate data and readable storage medium
CN112635034A (en) * 2020-12-30 2021-04-09 微医云(杭州)控股有限公司 Service authority system, authority distribution method, electronic device and storage medium

Also Published As

Publication number Publication date
WO2020199594A1 (en) 2020-10-08

Similar Documents

Publication Publication Date Title
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN110109712A (en) Service Component loading method, device, computer equipment and storage medium
WO2020186786A1 (en) File processing method and apparatus, computer device and storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN110290212B (en) Service call recording method, device, computer equipment and storage medium
CN109447411A (en) Business Process Control method, apparatus, computer equipment and storage medium
CN108874926A (en) Mass data inquiry method, device, computer equipment and storage medium
CN111859470B (en) Business data chaining method and device
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
CN110908778B (en) Task deployment method, system and storage medium
CN109726134B (en) Interface test method and system
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
CN109039751A (en) Configure method, apparatus, computer equipment and the storage medium of routing
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN110888797A (en) Test data generation method and device, computer equipment and storage medium
CN110321284B (en) Test data entry method, device, computer equipment and storage medium
CN109816563A (en) Electronic contract template circulation method, apparatus, computer equipment and storage medium
CN110134929A (en) Document verification method, apparatus, computer equipment and storage medium
CN109144799A (en) Integrated testing method, apparatus, computer equipment and storage medium
CN112286934A (en) Database table importing method, device, equipment and medium
CN110245125A (en) Data migration method, device, computer equipment and storage medium
CN111984239A (en) Page configuration method, device, server and storage medium
CN111209061B (en) User information filling method, device, computer equipment and storage medium
CN112364049A (en) Data synchronization script generation method, system, terminal and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190809

RJ01 Rejection of invention patent application after publication