CN109683888A - A kind of multiplexing method and reusable business module of business module - Google Patents
A kind of multiplexing method and reusable business module of business module Download PDFInfo
- Publication number
- CN109683888A CN109683888A CN201811557776.8A CN201811557776A CN109683888A CN 109683888 A CN109683888 A CN 109683888A CN 201811557776 A CN201811557776 A CN 201811557776A CN 109683888 A CN109683888 A CN 109683888A
- Authority
- CN
- China
- Prior art keywords
- application program
- business module
- mark
- business
- class
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses the multiplexing method and reusable business module of a kind of business module, and business module is in response to the calling of the first application program, and business module includes configuration class, and the identification field for configuring class is the mark of the first application program.Under the calling of the second application program, the identification field of class is configured after the mark that the mark of the first application program becomes the second application program, and business module reads identification field, executes business function according to the mark of the second application program;Finally, service processing result is returned into the second application program.When identical function is initiated in different application requirements, even if operation flow has differences, business module can also be according to the corresponding operation flow of mark executing application in configuration class.It is simple and convenient as long as, that is, using the business module for being packaged with the function, the code for writing identical function is repeated without developer as it can be seen that application program has identical function, effectively improve the development efficiency of application program.
Description
Technical field
This application involves fields of communication technology, multiplexing method and reusable business mould more particularly to a kind of business module
Block.
Background technique
With the development of information technology, the application program installed on people's mobile terminal shows diversified trend.So
And between many different application programs, there are identical functions, such as registering functional, login function etc..
For the developer of application program, although multiple application programs of exploitation have identical function, no
When executing correlation function with application program, operation flow is had differences.For example, when realizing registering functional, application program A and application
Different, address of service difference of request of the number of parameters that program B is sent etc..
Due to the presence of operation flow difference, when developer develops a certain function of new application program, can not replicate
The code write when directly using the identical function of exploitation other applications, it is necessary to largely be modified or be compiled again
It writes.
As it can be seen that the difference of operation flow seriously affects the development efficiency of application program.How the exploitation of application program is improved
Efficiency, it has also become this field technical problem urgently to be solved.
Summary of the invention
Based on the above issues, this application provides a kind of multiplexing methods of application program business module and reusable business mould
Block, to improve the development efficiency of application program.
The embodiment of the present application discloses following technical solution:
In a first aspect, the application provides a kind of multiplexing method of business module, it is applied to business module, the business module
In response to the calling of the first application program, the business module includes configuration class, and the identification field of the configuration class is described the
The mark of one application program, which comprises
Under the calling of the second application program, the identification field of the configuration class becomes from the mark of first application program
After mark for second application program, the identification field is read, industry is executed according to the mark of second application program
Business function;
Service processing result is returned into second application program.
Optionally, the business module is packaged with encryption function and registering functional, applies journey according to described second described
Before the mark of sequence executes business function, the method also includes:
Receive the registration information from second application program;
It is described that business function is executed according to the mark of second application program, it specifically includes:
Character in the registration information is encrypted, the registration for sending second application program to server is asked
It asks;Encryption data is carried in the registration request;
Receive the service processing result from the server.
Optionally, the business module includes the second registration request class, and the second registration request class is used for the note
Character in volume information is encrypted, and the registration request of second application program is sent to server, and receive and come from institute
State the service processing result of server.
Optionally, the character in the registration information specifically:
The corresponding cell-phone number of second application program, user name or certificate number.
Optionally, under the calling of second application program, the user interface UI configuration parameter of the configuration class is from institute
The UI configuration parameter for stating the first application program becomes the UI configuration parameter of second application program;
It is described service processing result is returned into second application program after, the method also includes:
The business is shown to user according to the UI configuration parameter of second application program in second application program
Processing result.
Optionally, the UI configuration parameter is following at least one:
Title pattern, description, text color or button official documents and correspondence.
Second aspect, the application provide a kind of reusable business module, tune of the business module in response to the first application program
With the business module includes configuration class, and the identification field of the configuration class is the mark of first application program, the industry
Business module include:
Business execution unit, under the calling of the second application program, the identification field of the configuration class is from described the
After the mark of one application program becomes the mark of second application program, the identification field is read, is answered according to described second
Business function is executed with the mark of program;
Result feedback unit, for service processing result to be returned to second application program.
Optionally, the business module is packaged with encryption function and registering functional, the business module further include:
Registration information receiving unit, for receiving the registration information from second application program;
The business execution unit, specifically includes:
Encryption sub-unit operable, for being encrypted to the character in the registration information;
Transmission sub-unit, for sending the registration request of second application program to server;In the registration request
Carry encryption data;
Receiving subelement, for receiving the service processing result from the server.
Optionally, the business module includes the second registration request class, and the second registration request class is described for executing
The function of encryption sub-unit operable, the transmission sub-unit and the receiving subelement.
Optionally, under the calling of second application program, the user interface UI configuration parameter of the configuration class is from institute
The UI configuration parameter for stating the first application program becomes the UI configuration parameter of second application program;
The business module further include:
UI component, in second application program according to the UI configuration parameter of second application program to user's exhibition
Show the service processing result.
Compared to the prior art, the application has the advantages that
In the multiplexing method of business module provided by the present application, calling of the business module in response to the first application program, institute
Stating business module includes configuration class, and the identification field of the configuration class is the mark of first application program.In this method, industry
Under the calling of the second application program, the identification field of the configuration class becomes module of being engaged in from the mark of first application program
After the mark of second application program, business module reads the identification field, according to the mark of second application program
Execute business function;Finally, service processing result is returned to second application program by business module.
In method provided by the present application, the business module for being packaged with set function is able to respond the tune of multiple application programs
With.When the second application program needs to call the function of business module, need to only be passed to the identification field of the configuration class of business module
Enter the mark of itself, business module can be clear according to mark and executes the function of the second application program initiation.To work as difference
Application requirement initiate identical function when, even if operation flow has differences, business module can also according to configuration class in
The corresponding operation flow of mark executing application.As it can be seen that as long as application program has identical function, i.e., available
It is packaged with the business module of the function, it is therefore not necessary to developer repeats to write the code of identical function, it is simple and convenient, effectively
Improve the development efficiency of application program.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the multiplexing method of business module provided by the embodiments of the present application;
Fig. 2 is the flow chart of the multiplexing method of another business module provided by the embodiments of the present application;
Fig. 3 is the flow chart of the multiplexing method of another business module provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of reusable business module provided by the embodiments of the present application.
Specific embodiment
Currently, since different application programs has differences in the operation flow of identical function, even if developing
When different application program, the code of identical function can not be reused, need largely to be modified or compiled again
It writes, greatly consumes the time and efforts of developer, to influence application development efficiency.
In view of this problem, this application provides a kind of multiplexing methods of business module and a kind of reusable business module.
Based on different application for the use demand of identical function, different application is made by providing respective identification information
Business module can clearly initiate the application program of correlation function, corresponding business when realizing the function thereby executing application program
Process.As it can be seen that using this method, as long as application program has identical function, i.e., the available business module for being packaged with the function,
It is therefore not necessary to developer repeats to write the code of identical function, and it is simple and convenient, effectively increase the exploitation effect of application program
Rate.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig. 1, which is a kind of flow chart of the multiplexing method of business module provided by the embodiments of the present application.This method
Applied to business module.
As shown in Figure 1, the multiplexing method of business module provided by the embodiments of the present application, comprising:
Step 101: under the calling of the second application program, mark of the identification field for configuring class from the first application program
After knowledge becomes the mark of second application program, the business module reads identification field in configuration class, according to described second
The mark of application program executes business function.
In the present embodiment, the first application program has the identical function that operation flow has differences with the second application program
Energy.As an example, the identical function that the first application program and the second application program have can be route planning function, payment function
Energy, order inquiries function, picture collection function, registering functional, login function or the function etc. of receiving and dispatching identifying code.
It, in embodiment, can be by identical function since the second application program and the first application program have identical function
It is encapsulated as a business module.Before business module is by the calling of the second application program, business module is answered in response to first
Corresponding function is executed with the calling of program.
It should be noted that including a configuration class in the business module encapsulated for convenient for multiplexing.The configuration class
In include an identification field.The mark for calling the application program of business module can be passed in identification field.It needs to illustrate
It is that the mark of different application programs is different, business module can be determined and be adjusted according to being specifically identified in configuration class identification field
With the application program of its function.As an example, the mark of application program can be the Universally Unique Identifier of the application program
(Universally Unique Identifier,UUID)。
It is understood that when calling of the business module in response to the first application program, the identification field for configuring class is
The mark of first application program.
When calling of the business module by the second application program, the second application program is passed using the mark of itself as ginseng is entered
Enter in the identification field of configuration class of business module, therefore, the mark of original first application program of identification field correspondingly by
Modification replaces with the mark of the second application program.
When due to the second application call business module, the second application program has been passed into the identification field of configuration class
Mark, therefore, business module by read configuration class in identification field, can recognize that call business module in encapsulate
The concrete application program of function is the second application program.Business module executes packaged according to the mark of the second application program
Function carries out the corresponding service process that the second application program realizes the function.
As an example, if being packaged with route inquiry function in business module, business module can be sent out to server
It send the route inquiry of the second application program to request, and receives the service processing result of server offer, i.e. server according to the map
The routing information of the destination and departure place planning that are provided in data and route inquiry request.
As another example, if being packaged with order inquiries function in business module, business module can be to server
The order inquiries request of the second application program is sent, carries the account information of user in order inquiries request, and receive server
The service processing result of offer, i.e. server according to order inquiries request in account information and Order Date obtain it is specific
Order information.
Step 102: service processing result is returned to second application program by business module.
Since business module is the correlation of execution after the mark for reading the second application program in configuration class identification field
Service processing result is correspondingly returned to second application program by business function, therefore, business module.
More than, the multiplexing method of business module as provided by the embodiments of the present application, in this method, business module in response to
The calling of first application program, the business module include configuration class, and the identification field of the configuration class is first application
The mark of program.In this method, business module is under the calling of the second application program, and the identification field of the configuration class is from described
After the mark of first application program becomes the mark of second application program, business module reads the identification field, according to
The mark of second application program executes business function;Finally, service processing result is returned to described second by business module
Application program.
In method provided by the present application, the business module for being packaged with set function is able to respond the tune of multiple application programs
With.When the second application program needs to call the function of business module, need to only be passed to the identification field of the configuration class of business module
Enter the mark of itself, business module can be clear according to mark and executes the function of the second application program initiation.To work as difference
Application requirement initiate identical function when, even if operation flow has differences, business module can also according to configuration class in
The corresponding operation flow of mark executing application.As it can be seen that as long as application program has identical function, i.e., using envelope
Business module equipped with the function, it is therefore not necessary to developer repeats to write the code of identical function, it is simple and convenient, effectively mention
The high development efficiency of application program.
Based on previous embodiment, present invention also provides the multiplexing methods of another business module, are encapsulated with business module
There is encryption function and registering functional is exemplary scene, specifically describes this method.It is retouched in detail below with reference to embodiment and attached drawing
It states.
Second embodiment
Referring to fig. 2, which is the flow chart of the multiplexing method of another business module provided by the embodiments of the present application.
As shown in Fig. 2, the multiplexing method of business module provided in this embodiment, comprising:
Step 201: under the calling of the second application program, mark of the identification field for configuring class from the first application program
After knowledge becomes the mark of second application program, business module reads the identification field.
It should be noted that the first application program and the second application program all have encryption function and note in the present embodiment
Volume function.Encryption function and registering functional are encapsulated as a business module in advance.When the second application call business module,
The mark of itself is passed into the configuration class of business module.To which the identification field for configuring class is modified to be able to unique identification
The mark of second application program.
Since identification field is passed to its mark by the second application program, business module is specifically in this step
Read the mark of the second application program in configuration class.
Step 202: business module receives the registration information from second application program.
In the present embodiment, also need to obtain for the encryption and registration purpose, business module of the user of the second application program of realization
The registration information that second application program provides.Registration information may include the corresponding much information of the second application program, such as can
To be cell-phone number, user name or the certificate number etc. of user.It is understood that the mobile phone of the corresponding user of the second application program
Number, user name or certificate etc. can specifically pass through input on the terminal device by user and provide, be also possible to the second application program root
The information storing memory provided when using the second function of application toward user accordingly.
Step 203: business module encrypts the character in the registration information, sends described second to server and answers
With the registration request of program, encryption data is carried in the registration request.
As an example, the mobile phone that the character encrypted in the present embodiment can provide for the user of the second application program
Number, user name or certificate number etc..The registration request for carrying encryption data is sent to server by business module, in order to service
Device interaction obtains user's information required when the second application program is registered.
It should be noted that the encrypting and decrypting strategy of business module can be suitable for any calling industry in the present embodiment
The application program for module of being engaged in.If necessary to modify encrypting and decrypting strategy, need to only modify in packaged business module.When
When any application call business module, that is, the modified corresponding operation flow of encrypting and decrypting strategy execution can be used.No
Application program one end is needed to make any modification.
Similarly, if application program requires authentication, increasing authentication policy in business module can be in each application
Authentication operations are executed when routine call business module.It does not need application program one end and makes any modification.
Step 204: business module receives the service processing result from the server, returns to the second application program
Return service processing result.
It is required when the second application program is registered can to specifically include user for the service processing result that business module receives
Information, be also possible to user and succeed in registration or the message of registration failure in the second application program.
It should be noted that in the present embodiment, the functional requirement that business module is initiated according to a new application program
It before interacting with server, also needs to be prepared work, such as creates a second registration request class in business module,
Second registration request class is specifically used for when the second application call business module, executes the behaviour of step 203 and step 204
Make.
It is understood that if separately thering is third application program to have encryption function and registering functional, it can be according to this reality
The multiplexing method of the business module of example offer, third application call business module are provided.Before calling business module, third is answered
The incoming business module of the mark of itself is configured in the identification field of class with program, with modified logo field.Business module receives
The registration information of third application program reads in identification field after the mark of third application program, clearly initiates encryption and registration
Operation flow be specially third application program, using the third registration request class pre-established to the character in registration information into
Row encryption, and the registration request for carrying the third application program of encryption data is sent to server.Finally, the third of business module
Registration request class receives the registration service processing result that the third application program that server returns is used for.
It is understood that for calling same business module to initiate correlation function (i.e. function packaged by the business module)
Different application, the displaying demand of user interface (User Interface, UI) may be different.For example, simplest
The displaying of one bullet frame is also required to by title pattern, description, text color, and the parameters such as button official documents and correspondence determine.It is understood that
So many parameter is easy to cause the readability of UI component and availability to reduce.To solve this problem, the application also further mentions
The multiplexing method of another business module is supplied.This method is described in detail below with reference to embodiment and attached drawing.
3rd embodiment
Referring to Fig. 3, which is the flow chart of the multiplexing method of another business module provided by the embodiments of the present application.
As shown in figure 3, the multiplexing method of business module provided in this embodiment, comprising:
Step 301: under the calling of the second application program, mark of the identification field for configuring class from the first application program
Know the mark for becoming second application program, the user interface UI configuration parameter for configuring class is configured from the UI of the first application program
After parameter becomes the UI configuration parameter of second application program, business module reads the identification field, according to described second
The mark of application program executes business function.
In the present embodiment, it configures in class and contains the UI configuration parameter of plurality of optional.It is different according to UI component, configure class
In include UI configuration parameter it is also different.By taking UI component is to play frame component as an example, UI configuration parameter can be following at least one:
Title pattern, description, text color or button official documents and correspondence.
Before business module is by the second application call, the first application call business module initiates the module
The correlation function of encapsulation, at this point, each UI configuration parameter of configuration class is each UI configuration parameter that the first application program is passed to.
In the present embodiment, the first application program is that parent's version course teaches application program.The function of business module encapsulation
For registering functional.First application program is by calling business module, to realize the registration of parent subscriber.First application program is incoming
UI configuration parameter specifically: text color be blue, button official documents and correspondence be " Hello parent thanks you to register this application ".Thus
Creation is suitable for the UI component of the first application program.First application program receives the service processing result of business module return,
The user of the first application program is specifically showed according to above-mentioned configuration parameter.
In the present embodiment, the second application program is that school edition course teaches application program.Second application program passes through calling
Business module, to realize the registration of User.After business module is by the second application call, UI configuration in class is configured
Parameter is modified to the incoming UI configuration parameter of the second application program: text color is green, button official documents and correspondence be " Hello classmate,
You is thanked to register this application ".
Step 302: service processing result is returned to second application program by business module.
In the present embodiment, the implementation of step 302 is identical with previous embodiment respectively, and associated description can refer to aforementioned
The correlation step of embodiment, details are not described herein again.
Step 303: in the second application program according to the UI configuration parameter of second application program to described in user's displaying
Service processing result.
Such as above-mentioned example, the second application program is pressed with the text of green and " Hello classmate's, you is thanked to register this application "
Button official documents and correspondence shows service processing result to user.
The above are the multiplexing methods of business module provided in this embodiment.Second application call business mould in this method
When block, the mark of the second application program and UI configuration parameter are passed to together in configuration class, thus the second application of synchronous creation
The UI component of the service processing result of program.Therefore, solve the problems, such as that parameter list is too long.Also, this method can be applicable in
In the application program of multiple calling business module creation UI components, convenient is that diversified UI component is arranged in application program.For example,
It, then can be when the UI configuration parameter of the second application program only has a few to be different from the UI configuration parameter of the first application program
When the second application call business module, it will differ from the incoming configuration class of several UI configuration parameters of the first application program.
It is simple and convenient as a result, correspondingly also improve the creation efficiency of UI component.
Based on previous embodiment, correspondingly, the application also provides a kind of reusable business module.Below with reference to embodiment and
Attached drawing is described in detail.
Fourth embodiment
Referring to fig. 4, which is the structural schematic diagram of reusable business module provided in this embodiment.
In the embodiment of the present application, calling of the reusable business module in response to the first application program, the business module
Comprising configuring class, the identification field of the configuration class is the mark of first application program, the reusable business module packet
It includes: business execution unit 401 and result feedback unit 402.
Wherein, business execution unit 401, under the calling of the second application program, the identification field of the configuration class
After the mark that the mark of first application program becomes second application program, the identification field is read, according to institute
The mark for stating the second application program executes business function;
Result feedback unit 402, for service processing result to be returned to second application program.
Reusable business module provided in this embodiment is packaged with set function and is able to respond the tune of multiple application programs
With.When the second application program needs to call the function of business module, need to only be passed to the identification field of the configuration class of business module
Enter the mark of itself, business module can be clear according to mark and executes the function of the second application program initiation.To work as difference
Application requirement initiate identical function when, even if operation flow has differences, business module can also according to configuration class in
The corresponding operation flow of mark executing application.As it can be seen that as long as application program has identical function, i.e., available
It is packaged with the reusable business module of the function, it is therefore not necessary to which developer repeats to write the code of identical function, simply just
Victory effectively increases the development efficiency of application program.
As a kind of possible implementation, the business module is packaged with encryption function and registering functional, the business
Module further include:
Registration information receiving unit, for receiving the registration information from second application program;
The business execution unit 401, specifically includes:
Encryption sub-unit operable, for being encrypted to the character in the registration information;
Transmission sub-unit, for sending the registration request of second application program to server;In the registration request
Carry encryption data;
Receiving subelement, for receiving the service processing result from the server.
It should be noted that the character in registration information is specifically as follows: what the user of second application program provided
Cell-phone number, user name or certificate number.
As a kind of possible implementation, the business module includes the second registration request class, and second registration is asked
Ask class for executing the function of the encryption sub-unit operable, the transmission sub-unit and the receiving subelement.
It is understood that for calling same business module to initiate correlation function (i.e. function packaged by the business module)
Different application, the displaying demand of user interface (User Interface, UI) may be different.For example, simplest
The displaying of one bullet frame is also required to by title pattern, description, text color, and the parameters such as button official documents and correspondence determine.It is understood that
So many parameter is easy to cause the readability of UI component and availability to reduce.To solve the above problems, as a kind of possible
Implementation, under the calling of second application program, the user interface UI configuration parameter of the configuration class is from described first
The UI configuration parameter of application program becomes the UI configuration parameter of second application program;The business module can also include:
UI component, in second application program according to the UI configuration parameter of second application program to user's exhibition
Show the service processing result.
It should be noted that in the present embodiment, the UI configuration parameter is following at least one:
Title pattern, description, text color or button official documents and correspondence.
Certainly, the difference set up according to the UI of required creation, UI configuration parameter can also include other ginsengs other than the above
Several classes of types.Herein for UI configuration parameter type and quantity without limit.
When due to the second application call reusable business module, the mark of the second application program and UI are configured
Parameter is passed to together in configuration class, thus the UI group of the service processing result in business module the second application program of synchronous creation
Part.Therefore, it solves in the prior art, the too long problem of parameter list.Also, the reusable business module can be suitable for more
A application program for calling business module creation UI component, convenient is that diversified UI component is arranged in application program.For example, when the
The UI configuration parameter of two application programs only has a few to be different from the UI configuration parameter of the first application program, then can be second
When application call business module, it will differ from the incoming configuration class of several UI configuration parameters of the first application program.As a result,
It is simple and convenient, correspondingly also improve the creation efficiency of UI component.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment it
Between same and similar part may refer to each other, each embodiment focuses on the differences from other embodiments.
For equipment and system embodiment, since it is substantially similar to the method embodiment, so describe fairly simple,
The relevent part can refer to the partial explaination of embodiments of method.Equipment and system embodiment described above is only schematic
, wherein unit may or may not be physically separated as illustrated by the separation member, as unit prompt
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
Those of ordinary skill in the art can understand and implement without creative efforts.
The above, only a kind of specific embodiment of the application, but the protection scope of the application is not limited thereto,
Within the technical scope of the present application, any changes or substitutions that can be easily thought of by anyone skilled in the art,
Should all it cover within the scope of protection of this application.Therefore, the protection scope of the application should be with scope of protection of the claims
Subject to.
Claims (10)
1. a kind of multiplexing method of business module, which is characterized in that be applied to business module, the business module is in response to first
The calling of application program, the business module include configuration class, and the identification field of the configuration class is first application program
Mark, which comprises
Under the calling of the second application program, the identification field of the configuration class becomes institute from the mark of first application program
After the mark for stating the second application program, the identification field is read, business function is executed according to the mark of second application program
Energy;
Service processing result is returned into second application program.
2. the multiplexing method of business module according to claim 1, which is characterized in that the business module is packaged with encryption
Function and registering functional, before the execution business function according to the mark of second application program, the method is also wrapped
It includes:
Receive the registration information from second application program;
It is described that business function is executed according to the mark of second application program, it specifically includes:
Character in the registration information is encrypted, the registration request of second application program is sent to server;Institute
It states and carries encryption data in registration request;
Receive the service processing result from the server.
3. the multiplexing method of business module according to claim 2, which is characterized in that the business module includes the second note
Volume request class, the second registration request class send institute for encrypting to the character in the registration information, to server
The registration request of the second application program is stated, and receives the service processing result from the server.
4. the multiplexing method of business module according to claim 2, which is characterized in that the character tool in the registration information
Body are as follows:
The corresponding cell-phone number of second application program, user name or certificate number.
5. the multiplexing method of business module according to claim 1-4, which is characterized in that in second application
Under the calling of program, the user interface UI configuration parameter of the configuration class becomes from the UI configuration parameter of first application program
The UI configuration parameter of second application program;
It is described service processing result is returned into second application program after, the method also includes:
The business processing is shown to user according to the UI configuration parameter of second application program in second application program
As a result.
6. the multiplexing method of business module according to claim 5, which is characterized in that the UI configuration parameter be with down toward
Few one kind:
Title pattern, description, text color or button official documents and correspondence.
7. a kind of reusable business module, which is characterized in that calling of the business module in response to the first application program, the business
Module includes configuration class, and the identification field of the configuration class is the mark of first application program, and the business module includes:
Business execution unit, under the calling of the second application program, the identification field of the configuration class to be answered from described first
After the mark for becoming second application program with the mark of program, the identification field is read, applies journey according to described second
The mark of sequence executes business function;
Result feedback unit, for service processing result to be returned to second application program.
8. reusable business module according to claim 7, which is characterized in that the business module is packaged with encryption function
And registering functional, the business module further include:
Registration information receiving unit, for receiving the registration information from second application program;
The business execution unit, specifically includes:
Encryption sub-unit operable, for being encrypted to the character in the registration information;
Transmission sub-unit, for sending the registration request of second application program to server;It is carried in the registration request
Encryption data;
Receiving subelement, for receiving the service processing result from the server.
9. reusable business module according to claim 8, which is characterized in that the business module includes that the second registration is asked
Class is sought, the second registration request class is for executing the encryption sub-unit operable, the transmission sub-unit and the receiving subelement
Function.
10. according to the described in any item reusable business modules of claim 7-9, which is characterized in that apply journey described second
Under the calling of sequence, the user interface UI configuration parameter of the configuration class becomes institute from the UI configuration parameter of first application program
State the UI configuration parameter of the second application program;
The business module further include:
UI component, for showing institute to user according to the UI configuration parameter of second application program in second application program
State service processing result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811557776.8A CN109683888A (en) | 2018-12-19 | 2018-12-19 | A kind of multiplexing method and reusable business module of business module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811557776.8A CN109683888A (en) | 2018-12-19 | 2018-12-19 | A kind of multiplexing method and reusable business module of business module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109683888A true CN109683888A (en) | 2019-04-26 |
Family
ID=66186332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811557776.8A Pending CN109683888A (en) | 2018-12-19 | 2018-12-19 | A kind of multiplexing method and reusable business module of business module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109683888A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139118A (en) * | 2019-05-20 | 2019-08-16 | 北京字节跳动网络技术有限公司 | Function operation method, device, electronic equipment and the storage medium of application program |
CN111614641A (en) * | 2020-05-11 | 2020-09-01 | 北京电信易通信息技术股份有限公司 | Cloud account management system and application method |
CN112241285A (en) * | 2019-07-16 | 2021-01-19 | 腾讯科技(深圳)有限公司 | Configuration method, device and equipment of operation program |
CN112769776A (en) * | 2020-12-27 | 2021-05-07 | 百果园技术(新加坡)有限公司 | Distributed service response method, system, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030200532A1 (en) * | 2002-04-17 | 2003-10-23 | Thomas Gensel | System and method for sharing reusable code base |
CN101140611A (en) * | 2007-09-18 | 2008-03-12 | 北京大学 | Malevolence code automatic recognition method |
CN101299186A (en) * | 2008-06-02 | 2008-11-05 | 国网信息通信有限公司 | Method and device for calling portlet service |
-
2018
- 2018-12-19 CN CN201811557776.8A patent/CN109683888A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030200532A1 (en) * | 2002-04-17 | 2003-10-23 | Thomas Gensel | System and method for sharing reusable code base |
CN101140611A (en) * | 2007-09-18 | 2008-03-12 | 北京大学 | Malevolence code automatic recognition method |
CN101299186A (en) * | 2008-06-02 | 2008-11-05 | 国网信息通信有限公司 | Method and device for calling portlet service |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110139118A (en) * | 2019-05-20 | 2019-08-16 | 北京字节跳动网络技术有限公司 | Function operation method, device, electronic equipment and the storage medium of application program |
CN112241285A (en) * | 2019-07-16 | 2021-01-19 | 腾讯科技(深圳)有限公司 | Configuration method, device and equipment of operation program |
CN111614641A (en) * | 2020-05-11 | 2020-09-01 | 北京电信易通信息技术股份有限公司 | Cloud account management system and application method |
CN112769776A (en) * | 2020-12-27 | 2021-05-07 | 百果园技术(新加坡)有限公司 | Distributed service response method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109683888A (en) | A kind of multiplexing method and reusable business module of business module | |
Paniagua et al. | Industrial frameworks for internet of things: A survey | |
US8375360B2 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
US8291077B2 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
CN110430235B (en) | Method, apparatus, storage medium and computing device for cross-chain transmission of authenticatable messages | |
CN105745867B (en) | Method and apparatus for managing specific resources in a wireless communication system | |
US9294867B2 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
CN110099029A (en) | A kind of auth method, terminal device and server | |
CN108650276A (en) | A kind of login method, device, electronic equipment and storage medium | |
US8589956B2 (en) | Method and apparatus for providing application with interface to composite network service | |
CN109587142B (en) | Data security access module and equipment for service flow | |
CN106411517A (en) | Password resetting method and device | |
CN108471395A (en) | Realize method, apparatus, cloud computing system and the computer system of certification/mandate | |
CN107637052A (en) | A kind of business data processing method, client, service end and system | |
JP4583152B2 (en) | Service processing method and program | |
CN109858257A (en) | Access control method and device | |
JP2006127470A (en) | Program, method and device for managing information shared among components, recording medium and communication apparatus | |
CN113342317B (en) | Development multi-service dynamic combination method and system based on Android componentization | |
CN111277983A (en) | RFID middleware, publish-subscribe system and data transmission method | |
CN114363306A (en) | Data transmission method based on Netconf protocol and related equipment | |
CN101616498A (en) | A kind of method, Subscriber Identity Module and unit that carries out interactive information access | |
EP1681832A1 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
CN103607324B (en) | Data processing method for Java message service, Java message client and server | |
CN109450643A (en) | The signature sign test method realized in Android platform based on native service | |
US20060190539A1 (en) | Provision of services over a common delivery platform such as a mobile telephony network |
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: 20190426 |
|
RJ01 | Rejection of invention patent application after publication |