CN106325917B - method and system for realizing module access by reverse program - Google Patents

method and system for realizing module access by reverse program Download PDF

Info

Publication number
CN106325917B
CN106325917B CN201610647289.5A CN201610647289A CN106325917B CN 106325917 B CN106325917 B CN 106325917B CN 201610647289 A CN201610647289 A CN 201610647289A CN 106325917 B CN106325917 B CN 106325917B
Authority
CN
China
Prior art keywords
module
access
file
reverse
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610647289.5A
Other languages
Chinese (zh)
Other versions
CN106325917A (en
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.)
Shengxi Information Technology (shanghai) Co Ltd
Original Assignee
Shengxi Information Technology (shanghai) 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 Shengxi Information Technology (shanghai) Co Ltd filed Critical Shengxi Information Technology (shanghai) Co Ltd
Priority to CN201610647289.5A priority Critical patent/CN106325917B/en
Publication of CN106325917A publication Critical patent/CN106325917A/en
Application granted granted Critical
Publication of CN106325917B publication Critical patent/CN106325917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention provides a method and a system for realizing module access by a reverse program, wherein an access module C02 'containing an interface file B02 is used for replacing B01 extracted from a reverse result to obtain A02'; the compiling module G02 forward compiles the A02' to generate a new target interface program A02. The invention realizes that software development only needs to access the substrate module once, after an application program is accessed to the access module of the substrate, the access modules from other sources can be adapted through accessing B01, the access work is automatically generated and completed subsequently, operation and maintenance personnel can complete the operation without development intervention, the development cost is reduced, the generation of error codes is reduced, and meanwhile, the invention is simple to use and convenient to operate; in addition, the invention can realize the generation of the program package according to the requirement, and because the access modules from different sources have similar functions, the resource conflict is possible to occur when the access modules from different sources simultaneously occur, thereby avoiding the resource conflict caused by the access modules from different sources appearing in one installation package and simultaneously reducing useless redundant files.

Description

method and system for realizing module access by reverse program
Technical Field
The invention relates to a method and a system for realizing module access by a reverse program.
Background
at present, in internet enterprises, a company usually has many application products, and these products all need to access some program modules developed from different internal departments or program modules from external departments, the functions of these program modules are similar, after the access, a plurality of function modules with similar functions need to generate different running program packages or installation packages according to different sources of the accessed function modules, and at the same time, one running program or installation package usually only uses one access module, and the application product features are usually distributed in a whole package manner, for example: the android program is accessed to authentication modules and payment modules of different channels, and APK installation packages of different channels are generated and used for being published in respective channels.
the conventional solution to the problem is as follows:
1. The developer realizes the one-to-one access of the access module according to the copy of a plurality of application program codes, which causes excessive source code versions of the application program, and the application program is difficult to maintain;
2. The access of various access modules in an application program source code is developed, and an access mode is started according to configuration, so that redundant files in a published program are excessive, and meanwhile, when a plurality of application products are used, the access cost is high, and the access modules are difficult to update in batch under the condition that the access modules are updated.
Disclosure of Invention
the invention aims to provide a method and a system for realizing module access by a reverse program, which can realize access modules from other sources and automatically generate and complete access work.
in order to solve the above problem, the present invention provides a method for realizing module access by a reverse program, which comprises:
the target interface program A01' realizes function access according to B01 to obtain a target interface program A01, wherein B01 is a predefined interface file;
the access module C02 realizes function adaptation according to the interface B01, generates a new interface file B02 corresponding to the access module C02, and obtains an access module C02' containing the interface file B02, wherein C02 is an adaptation module of an access source program;
The reverse module F02 reverses the target interface program A01 and extracts B01 from the reverse result;
Replacing B01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain A02';
The compiling module G02 forward compiles the A02' to generate a new target interface program A02.
further, in the above method, the obtaining of the target interface program a01 by the target interface program a 01' according to the B01 implementation function includes:
The access module C01 realizes function adaptation according to the interface defined by the interface file B01 to obtain an adapted B01, wherein the C01 is an adaptation module of an access source program different from the C02;
The target interface program A01' realizes the function access according to the adapted B01 to obtain the target interface program A01.
Further, in the above method, the reversing module F02 reverses the target interface program a01 to extract B01 from the reversed result, including:
The reverse module F02 reverses the target interface program A01, extracting B01 and C01 from the reversed result.
further, in the above method, replacing B01 extracted in the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
and replacing the B01 and the C01 extracted in the reverse result by using an access module C02 'containing an interface file B02 to obtain A02'.
Further, in the above method, replacing B01 and C01 extracted in the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
If the file specifications of B02 and C02 ' are not consistent with those of B01 and C01, the B02 and C02 ' are converted into B02 and C02 ' consistent with those of B01 and C01 in advance through a conversion module I01,
And replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'.
Further, in the above method, replacing B01 and C01 extracted from the reverse result with an access module C02 'containing an interface file B02 after specification conversion to obtain a 02', including:
The file names contained in B01 or B01 and C01 are recorded in advance in the file J01 by the file recording module H01;
And deleting B01 or B01 and C01 according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
Further, in the above method, replacing B01 and C01 extracted in the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
If the file specifications of B02 and C02 'are not consistent with those of B01 and C01, converting the extracted B01 and C01 into B01 and C01 consistent with those of B02 and C02' in advance through a conversion module I01;
The access module C02 'containing the interface file B02 is used to replace the specification-converted B01 and C01 in the reverse result, resulting in a 02'.
Further, in the above method, replacing the specification-converted B01 and C01 in the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
the file names contained in B01 or B01 and C01 after specification conversion are recorded in advance in the file J01 by the file recording module H01;
And deleting the B01 or the B01 and the C01 after the specification conversion according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
According to another aspect of the present invention, there is provided a system for accessing a module by a reverse program, including:
The target interface program A01' is used for realizing function access according to B01 to obtain a target interface program A01, wherein B01 is a predefined interface file;
The access module C02 is configured to implement function adaptation according to the B01 interface, generate a new interface file B02 corresponding to the access module C02, and obtain an access module C02' including the interface file B02, where C02 is an adaptation module of an access source program;
an inverse module F02 for inverting the target interface program A01 and extracting B01 from the inverted result;
A replacing module, configured to replace the B01 extracted in the reverse result with an access module C02 'that includes an interface file B02, to obtain a 02';
a compiling module G02, for forward compiling the A02' to generate a new target interface program A02.
Further, in the above system, the access module C01 is configured to implement function adaptation according to an interface defined by the interface file B01 to obtain an adapted B01, where C01 is an adaptation module of an access source program different from C02;
and the target interface program A01' is used for realizing function access according to the adapted B01 to obtain the target interface program A01.
further, in the above system, the reverse module F02 is configured to reverse the target interface program a01, and extract B01 and C01 from the reverse result.
further, in the above system, the replacing module is configured to replace B01 and C01 extracted in the reverse result with an access module C02 'containing an interface file B02, resulting in a 02'.
further, in the above system, the replacement module is configured to, if the file sizes of B02 and C02 ' are not consistent with the file sizes of B01 and C01, convert B02 and C02 ' into B02 and C02 ' consistent with the file sizes of B01 and C01 in advance through the conversion module I01,
and replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'.
further, in the above system, the replacement module is configured to record in advance, in the file J01, file names contained in B01 or B01 and C01 by the file recording module H01; and deleting B01 or B01 and C01 according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
Further, in the above system, the replacement module is configured to, if the file sizes of B02 and C02 ' are not consistent with the file sizes of B01 and C01, convert B02 and C02 ' into B02 and C02 ' consistent with the file sizes of B01 and C01 in advance through the conversion module I01,
and replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'.
Further, in the above system, the replacement module is configured to record in advance, in the file J01, file names contained in B01 or B01 and C01 by the file recording module H01; and deleting B01 or B01 and C01 according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
compared with the prior art, the method has the advantages that the target interface program A01 is obtained by the target interface program A01' according to B01, wherein B01 is a predefined interface file; step S2, the access module C02 realizes function adaptation according to the B01 interface, and generates a new interface file B02 corresponding to the access module C02, and obtains an access module C02' containing the interface file B02, wherein C02 is an adaptation module of an access source program; the reverse module F02 reverses the target interface program A01 and extracts B01 from the reverse result; replacing B01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain A02'; the compiling module G02 forward compiles the A02' to generate a new target interface program A02. The invention realizes that software development only needs to access the substrate module once, after an application program is accessed to the access module of the substrate, the access modules from other sources can be adapted through accessing B01, the access work is automatically generated and completed subsequently, operation and maintenance personnel can complete the operation without development intervention, the development cost is reduced, the generation of error codes is reduced, and meanwhile, the invention is simple to use and convenient to operate; in addition, the invention can realize the generation of the program package according to the requirement, because the access modules from different sources have similar functions, when the access modules simultaneously appear, the resource conflict is possible to occur, the method avoids the resource conflict caused by the access modules from different sources appearing in one installation package, and simultaneously reduces useless redundant files.
Drawings
Fig. 1 is a flowchart of a method for accessing a module by a reverse program according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for accessing a module by a reverse program according to another embodiment of the present invention.
Detailed Description
in order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
example one
as shown in fig. 1, the present invention provides a method for accessing a module by a reverse program, including:
step S1, the target interface program A01' realizes the function access according to B01 to obtain a target interface program A01, wherein B01 is a predefined interface file; here, B01 may be a separate interface file, and the advantage of the separate B01 is that only B01 needs to be replaced when B01+ C01 is used for replacement, and C01 does not need to be replaced, so that the replacement operation range is reduced, the replacement complexity is reduced, and the replacement process is more convenient;
step S2, the access module C02 realizes function adaptation according to the B01 interface, and generates a new interface file B02 corresponding to the access module C02, and obtains an access module C02' containing the interface file B02, wherein C02 is an adaptation module of an access source program;
step S3, the reverse module F02 reverses the target interface program A01, and extracts B01 from the reverse result;
step S4, replacing the B01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain A02';
In step S5, the compiling module G02 forward compiles the A02' to generate a new target interface program A02. The invention realizes that software development only needs to access the substrate module once, after an application program is accessed to the access module of the substrate, the access modules from other sources can be adapted through accessing B01, then the implementation system using the method automatically generates and completes the access work, and operation and maintenance personnel can complete the operation without development intervention, thereby reducing development cost and error code generation, and meanwhile, the invention is simple to use and convenient to operate; in addition, the invention can realize the generation of the program package according to the requirement, because the access modules from different sources have similar functions, when the access modules simultaneously appear, the resource conflict is possible to occur, the method avoids the resource conflict caused by the access modules from different sources appearing in one installation package, and simultaneously reduces useless redundant files.
As shown in fig. 2, preferably, in step S1, the target interface program a 01' obtains the target interface program a01 by implementing function access according to B01, and includes:
step S11, the access module C01 implements function adaptation according to the interface defined by the interface file B01 to obtain an adapted B01, wherein C01 is an adaptation module of an access source program different from C02;
and step S12, the target interface program A01' realizes the function access according to the adapted B01 to obtain the target interface program A01. Specifically, B01 may be a complete access packet B01+ C01, and the advantage of including a complete access packet B01 and C01 is that a specific access module C01 is included, so that function debugging of the access process can be conveniently performed, and if the external incoming parameters are incorrect, the function debugging can be found when access is developed.
Accordingly, as shown in fig. 2, in step S3, the reverse module F02 reverses the target interface program a01 and extracts B01 from the reverse result, including:
in step S31, the reverse module F02 reverses the target interface program A01 to extract B01 and C01 from the reverse result.
accordingly, as shown in fig. 2, in step S4, replacing the B01 extracted from the reverse result with the access module C02 'containing the interface file B02 to obtain a 02', including:
In step S41, the access module C02 'containing the interface file B02 is used to replace the B01 and C01 extracted from the reverse result, resulting in a 02'.
Preferably, in step S41, replacing B01 and C01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
if the file specifications of B02 and C02 ' are not consistent with those of B01 and C01, the B02 and C02 ' are converted into B02 and C02 ' consistent with those of B01 and C01 in advance through a conversion module I01,
and replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'. Here, when the original files of B02 and C02 ' are the result of the reverse direction from a01, and the B01 and C01 file specifications are not consistent (such as library files, jar files or compressed package files, etc.), and cannot be compiled directly through G02 after replacing B01 and C01, it is necessary to add a conversion module I01 to convert B02 and C02 ' into B02 and C02 ' having the same specifications as B01 and C01 in advance, and then replace them.
Preferably, replacing B01 and C01 extracted from the reverse result with an access module C02 'containing an interface file B02 after specification conversion to obtain a 02', including:
the file names contained in B01 or B01 and C01 are recorded in advance in the file J01 by the file recording module H01;
and deleting B01 or B01 and C01 according to the recording range in J01, and adding the access module C02 'containing the interface file B02 after specification conversion at the deleted position to obtain A02'. Specifically, the file recording module H01 records the file names contained in B01 or B01 and C01 in the file J01 in advance, and when, in the reverse result, the access module C02 ' containing the interface file B02 needs to replace B01 or B01 and C01, deletes B01 or B01 and C01 according to the recording range in J01, and adds the access module C02 ' containing the interface file B02 at the deleted position to obtain a02 ', and then generates a02 through G02. Here, a file list of B01 or B01 may be generated in advance, B01 includes B01+ C01, and when B02+ C02 is used for replacement, the replacement file range is narrowed down, and it is ensured that the self-contained file in a 01' is not deleted by mistake.
preferably, replacing the B01 and the C01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
if the file specifications of B02 and C02 'are not consistent with those of B01 and C01, converting the extracted B01 and C01 into B01 and C01 consistent with those of B02 and C02' in advance through a conversion module I01;
the access module C02 'containing the interface file B02 is used to replace the specification-converted B01 and C01 in the reverse result, resulting in a 02'. Here, when the original files of B02 and C02 'are the result of the reverse direction from a01, and the B01 and C01 file specifications are not consistent (such as library files, jar files or compressed package files, etc.), and cannot be compiled directly through G02 after replacing B01 and C01, it is necessary to add a conversion module I01 to convert B01 and C01 to B01 and C01 which are consistent with the B02 and C02' specifications, and then replace them.
preferably, replacing the specification-converted B01 and C01 in the reverse result with an access module C02 'containing an interface file B02 to obtain a 02', including:
the file names contained in B01 or B01 and C01 after specification conversion are recorded in advance in the file J01 by the file recording module H01;
and deleting the B01 or the B01 and the C01 after the specification conversion according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'. Specifically, the file recording module H01 records the file names contained in B01 or B01 and C01 after specification conversion in the file J01 in advance, when in the reverse result, the access module C02 ' containing the interface file B02 needs to replace B01 or B01 and C01, delete B01 or B01 and C01 according to the recording range in J01, add the access module C02 ' containing the interface file B02 at the deleted position to obtain a02 ', and then generate a02 through G02. Here, a file list of B01 or B01 may be generated in advance, B01 includes B01+ C01, and when B02+ C02 is used for replacement, the replacement file range is narrowed down, and it is ensured that the self-contained file in a 01' is not deleted by mistake.
Example two
The invention also provides another system for realizing module access by reverse program, which comprises:
the target interface program A01' is used for realizing function access according to B01 to obtain a target interface program A01, wherein B01 is a predefined interface file;
The access module C02 is configured to implement function adaptation according to the B01 interface, generate a new interface file B02 corresponding to the access module C02, and obtain an access module C02' including the interface file B02, where C02 is an adaptation module of an access source program;
An inverse module F02 for inverting the target interface program A01 and extracting B01 from the inverted result;
a replacing module, configured to replace the B01 extracted in the reverse result with an access module C02 'that includes an interface file B02, to obtain a 02';
a compiling module G02, for forward compiling the A02' to generate a new target interface program A02.
preferably, the access module C01 is configured to implement function adaptation according to an interface defined by the interface file B01 to obtain an adapted B01, where C01 is an adaptation module of an access source program different from C02;
and the target interface program A01' is used for realizing function access according to the adapted B01 to obtain the target interface program A01.
Preferably, the reverse module F02 is configured to reverse the target interface program a01 to extract B01 and C01 from the reverse result.
preferably, the replacing module is configured to replace the B01 and the C01 extracted in the reverse result with an access module C02 'including the interface file B02, so as to obtain a 02'.
preferably, the replacement module is used for converting the B02 and the C02 ' into the B02 and the C02 ' which are consistent with the B01 and the C01 in advance through the conversion module I01 if the file specifications of the B02 and the C02 ' are inconsistent with the file specifications of the B01 and the C01,
and replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'.
preferably, the replacement module is configured to record the file name contained in B01 or B01 and C01 in the file J01 in advance by the file recording module H01; and deleting B01 or B01 and C01 according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
Preferably, the replacing module is configured to, if the file sizes of B02 and C02 'are not consistent with the file sizes of B01 and C01, convert the extracted B01 and C01 into B01 and C01 with file sizes consistent with the file sizes of B02 and C02' in advance through the converting module I01;
The access module C02 'containing the interface file B02 is used to replace the specification-converted B01 and C01 in the reverse result, resulting in a 02'.
preferably, the replacement module is configured to record in advance, in the file J01, the file name included in the B01 or the B01 and C01 after the specification conversion by the file recording module H01;
And deleting the B01 or the B01 and the C01 after the specification conversion according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
for details of other embodiments, reference may be made to corresponding parts of the first embodiment, and details are not repeated herein.
The method realizes function access according to B01 through a target interface program A01' to obtain a target interface program A01, wherein B01 is a predefined interface file; step S2, the access module C02 realizes function adaptation according to the B01 interface, and generates a new interface file B02 corresponding to the access module C02, and obtains an access module C02' containing the interface file B02, wherein C02 is an adaptation module of an access source program; the reverse module F02 reverses the target interface program A01 and extracts B01 from the reverse result; replacing B01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain A02'; the compiling module G02 forward compiles the A02' to generate a new target interface program A02. The invention realizes that software development only needs to access the substrate module once, after an application program is accessed to the access module of the substrate, the access modules from other sources can be adapted through accessing B01, the access work is automatically generated and completed subsequently, operation and maintenance personnel can complete the operation without development intervention, the development cost is reduced, the generation of error codes is reduced, and meanwhile, the invention is simple to use and convenient to operate; in addition, the invention can realize the generation of the program package according to the requirement, because the access modules from different sources have similar functions, when the access modules simultaneously appear, the resource conflict is possible to occur, the method avoids the resource conflict caused by the access modules from different sources appearing in one installation package, and simultaneously reduces useless redundant files.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
it will be apparent to those skilled in the art that various changes and modifications may be made in the invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (16)

1. a method for realizing module access by a reverse program is characterized by comprising the following steps:
The target interface program A01' realizes function access according to B01 to obtain a target interface program A01, wherein B01 is a predefined interface file;
the access module C02 realizes function adaptation according to the interface B01, generates a new interface file B02 corresponding to the access module C02, and obtains an access module C02' containing the interface file B02, wherein C02 is an adaptation module of an access source program;
The reverse module F02 reverses the target interface program A01 and extracts B01 from the reverse result;
Replacing B01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain A02';
The compiling module G02 forward compiles the A02' to generate a new target interface program A02.
2. the method for realizing module access by reverse program according to claim 1, wherein the target interface program a 01' obtains the target interface program a01 according to the B01 function access, comprising:
the access module C01 realizes function adaptation according to the interface defined by the interface file B01 to obtain an adapted B01, wherein the C01 is an adaptation module of an access source different from the C02;
the target interface program A01' realizes the function access according to the adapted B01 to obtain the target interface program A01.
3. the method for realizing module access by reverse program according to claim 2, wherein the reverse module F02 reverses the target interface program a01 to extract B01 from the reverse result, comprising:
The reverse module F02 reverses the target interface program A01, extracting B01 and C01 from the reversed result.
4. the method for realizing module access by reverse program according to claim 3, wherein replacing B01 extracted from the reverse result with an access module C02 'containing an interface file B02 to obtain A02' comprises:
and replacing the B01 and the C01 extracted in the reverse result by using an access module C02 'containing an interface file B02 to obtain A02'.
5. the method for realizing module access by reverse program according to claim 1 or 4, wherein replacing extracted B01 and C01 in reverse result with access module C02 'containing interface file B02 to obtain A02', comprises:
If the file specifications of B02 and C02 ' are not consistent with those of B01 and C01, the B02 and C02 ' are converted into B02 and C02 ' consistent with those of B01 and C01 in advance through a conversion module I01,
And replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'.
6. the method for accessing modules by reverse program according to claim 5, wherein the step of replacing B01 and C01 extracted from the reverse result with the access module C02 'containing interface file B02 after specification conversion, obtaining A02', comprises:
the file names contained in B01 or B01 and C01 are recorded in advance in the file J01 by the file recording module H01;
And deleting B01 or B01 and C01 according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
7. The method for realizing module access by reverse program according to claim 1 or 4, wherein replacing extracted B01 and C01 in reverse result with access module C02 'containing interface file B02 to obtain A02', comprises:
if the file specifications of B02 and C02 'are not consistent with those of B01 and C01, converting the extracted B01 and C01 into B01 and C01 consistent with those of B02 and C02' in advance through a conversion module I01;
the access module C02 'containing the interface file B02 is used to replace the specification-converted B01 and C01 in the reverse result, resulting in a 02'.
8. the method for realizing module access by reverse program according to claim 7, wherein replacing the specification-converted B01 and C01 in the reverse result with an access module C02 'containing an interface file B02 to obtain A02', comprises:
the file names contained in B01 or B01 and C01 after specification conversion are recorded in advance in the file J01 by the file recording module H01;
And deleting the B01 or the B01 and the C01 after the specification conversion according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
9. A system for accessing a module by a reverse program, comprising:
the target interface program A01' is used for realizing function access according to B01 to obtain a target interface program A01, wherein B01 is a predefined interface file;
the access module C02 is configured to implement function adaptation according to the B01 interface, generate a new interface file B02 corresponding to the access module C02, and obtain an access module C02' including the interface file B02, where C02 is an adaptation module of an access source program;
an inverse module F02 for inverting the target interface program A01 and extracting B01 from the inverted result;
A replacing module, configured to replace the B01 extracted in the reverse result with an access module C02 'that includes an interface file B02, to obtain a 02';
A compiling module G02, for forward compiling the A02' to generate a new target interface program A02.
10. The system for realizing module access by reverse program of claim 9, wherein the access module C01 is configured to obtain an adapted B01 by adapting according to the interface implementation function defined by the interface file B01, wherein C01 is an adaptation module of an access source program different from C02;
and the target interface program A01' is used for realizing function access according to the adapted B01 to obtain the target interface program A01.
11. The system for module access by a reverse program of claim 9, wherein the reverse module F02 is configured to reverse the target interface program a01 to extract B01 and C01 from the reverse result.
12. the system for realizing module access by a reverse program according to claim 11, wherein the replacing module is configured to replace B01 and C01 extracted from the reverse result with an access module C02 'containing an interface file B02, resulting in a 02'.
13. the system for realizing module access by reverse program according to claim 9 or 12, wherein the replacing module is used for converting the B02 and C02 ' into the B02 and C02 ' conforming to the B01 and C01 specifications in advance through the converting module I01 if the file specifications of the B02 and C02 ' are not conforming to the file specifications of the B01 and C01,
And replacing the B01 and the C01 extracted from the reverse result by using an access module C02 'with the converted specification and containing the interface file B02 to obtain A02'.
14. The system for realizing module access by a reverse program according to claim 13, wherein said replacement module is adapted to record in advance a file name contained in B01 or B01 and C01 in the file J01 by the file recording module H01; and deleting B01 or B01 and C01 according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
15. The system for realizing module access by reverse program according to claim 9 or 12, wherein the replacing module is configured to convert the extracted B01 and C01 into B01 and C01 in compliance with B02 and C02 'specification in advance through a converting module I01 if the file specifications of B02 and C02' are not in compliance with B01 and C01;
The access module C02 'containing the interface file B02 is used to replace the specification-converted B01 and C01 in the reverse result, resulting in a 02'.
16. The system for realizing module access by a reverse program according to claim 13, wherein the replacement module is configured to record in advance, in the file J01, file names included in the B01 or the B01 and C01 after the specification conversion by a file recording module H01;
and deleting the B01 or the B01 and the C01 after the specification conversion according to the recording range in J01, and adding an access module C02 'containing the interface file B02 at the deleted position to obtain A02'.
CN201610647289.5A 2016-08-09 2016-08-09 method and system for realizing module access by reverse program Active CN106325917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610647289.5A CN106325917B (en) 2016-08-09 2016-08-09 method and system for realizing module access by reverse program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610647289.5A CN106325917B (en) 2016-08-09 2016-08-09 method and system for realizing module access by reverse program

Publications (2)

Publication Number Publication Date
CN106325917A CN106325917A (en) 2017-01-11
CN106325917B true CN106325917B (en) 2019-12-06

Family

ID=57739718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610647289.5A Active CN106325917B (en) 2016-08-09 2016-08-09 method and system for realizing module access by reverse program

Country Status (1)

Country Link
CN (1) CN106325917B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266549A (en) * 2008-03-19 2008-09-17 华为技术有限公司 Method for inserting code, device and storage medium
CN103761087A (en) * 2014-01-03 2014-04-30 北京京东尚科信息技术有限公司 Method and device for cross-platform development of mobile applications
CN104484585A (en) * 2014-11-26 2015-04-01 北京奇虎科技有限公司 Application program installation package processing method and device, and mobile apparatus
CN104852939A (en) * 2014-02-18 2015-08-19 中国电信股份有限公司 Capability interface deploying method and system
CN105574000A (en) * 2014-10-08 2016-05-11 中兴通讯股份有限公司 Method and device for expanding APK (Android Package) file application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7657881B2 (en) * 2004-12-21 2010-02-02 Intel Corporation Using optimized libraries to improve performance of deployed application code at runtime

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266549A (en) * 2008-03-19 2008-09-17 华为技术有限公司 Method for inserting code, device and storage medium
CN103761087A (en) * 2014-01-03 2014-04-30 北京京东尚科信息技术有限公司 Method and device for cross-platform development of mobile applications
CN104852939A (en) * 2014-02-18 2015-08-19 中国电信股份有限公司 Capability interface deploying method and system
CN105574000A (en) * 2014-10-08 2016-05-11 中兴通讯股份有限公司 Method and device for expanding APK (Android Package) file application
CN104484585A (en) * 2014-11-26 2015-04-01 北京奇虎科技有限公司 Application program installation package processing method and device, and mobile apparatus

Also Published As

Publication number Publication date
CN106325917A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN105354314B (en) Data migration method and device
WO2019168599A1 (en) Data retention handling for data object stores
US9928055B1 (en) Validating development software by comparing results from processing historic data sets
CN104090946B (en) The method and device of information is added in application installation package
US9971819B2 (en) Using cloud processing to integrate ETL into an analytic reporting mechanism
US20200167444A1 (en) Systems and methods for software license management
CN104267988A (en) System and method for packing mobile applications
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
US20170109253A1 (en) System and method for filtering system log under operating system
CN107918564B (en) Data transmission exception handling method and device, electronic equipment and storage medium
WO2015139565A1 (en) Heterogeneous logging system management configuration
CN112256670A (en) Data migration method, terminal device and readable storage medium
CN108681446B8 (en) Crowd-sourced climate algorithm management system and method based on component service
CN106598554B (en) Code generation device
CN106325917B (en) method and system for realizing module access by reverse program
CN116800535A (en) Method and device for avoiding secret between multiple servers
CN105227597A (en) A kind of method, Apparatus and system obtaining terminal equipment screen-picture
CN105577707A (en) Remote call method and remote call device
CN114020796A (en) Electronic specification implementation method based on industrial internet identification analysis system
CN111125047B (en) Cold and hot data catalog identification method and device
CN107844491B (en) Method and equipment for realizing strong consistency read operation in distributed system
CN111107154B (en) Data reporting method and device
CN115757041B (en) Method for collecting dynamically configurable multi-cluster logs and application
CN100370750C (en) User terminal management method
CN111241191A (en) Database synchronization method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant