Disclosure of Invention
An object of the embodiments of the present application is to provide an information processing method and apparatus, so as to solve the problems that it is not guaranteed in the prior art that a module on which a module to be tested depends is obtained through manual analysis has higher accuracy, and the efficiency of information processing is lower.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
an information processing method provided by an embodiment of the present application includes:
acquiring positioning information of a designated module in a project, wherein the positioning information comprises a module identifier of the designated module;
determining the dependency relationship information of the appointed module by using the module dependency relationship information corresponding to the project according to the positioning information of the appointed module,
the module dependency relationship information corresponding to the project comprises information of dependency relationships among modules contained in the project.
Optionally, the method further comprises:
acquiring configuration information of modules contained in the project;
determining information of auxiliary modules depended by the modules according to configuration information of the modules contained in the project;
and determining module dependency relationship information corresponding to the project according to the information of the auxiliary modules depended on by the modules.
Optionally, the obtaining configuration information of the module included in the item includes:
acquiring target configuration information contained in the project;
and acquiring configuration information related to the modules contained in the project from the target configuration information according to a preset content keyword so as to obtain the configuration information of the modules contained in the project.
Optionally, the acquired configuration information related to the modules included in the project includes a project identifier of the project,
after the configuration information related to the module included in the item is acquired from the target configuration information according to the predetermined content keyword, the method further includes:
and acquiring the configuration information of the module matched with the project identification from the acquired configuration information related to the modules contained in the project.
Optionally, the method further comprises:
if the modules contained in the project are increased or decreased, updating the module dependency relationship information corresponding to the project based on the configuration information of the increased or decreased modules;
determining the dependency relationship information of the designated module by using the module dependency relationship information corresponding to the project according to the positioning information of the designated module, including:
and determining the dependency relationship information of the designated module by using the updated module dependency relationship information corresponding to the project according to the positioning information of the designated module.
Optionally, the obtaining of the target configuration information included in the item includes:
acquiring a storage path of the item;
and traversing the configuration information files contained in the storage path of the project, and acquiring the information in each configuration information file as the target configuration information contained in the project.
Optionally, the project is an application project based on a spring hierarchical modular framework, and the module is a spring engineering module.
An information processing apparatus provided in an embodiment of the present application, the apparatus includes:
the system comprises a positioning information acquisition module, a storage module and a processing module, wherein the positioning information acquisition module is used for acquiring positioning information of a designated module in a project, and the positioning information comprises a module identifier of the designated module;
a dependency information determining module for determining dependency information of the designated module by using module dependency information corresponding to the item according to the positioning information of the designated module,
the module dependency relationship information corresponding to the project comprises information of dependency relationships among modules contained in the project.
Optionally, the apparatus further comprises:
the configuration information acquisition module is used for acquiring the configuration information of the modules contained in the project;
an auxiliary information determination module for determining information of an auxiliary module on which each module depends, according to configuration information of the modules included in the project;
and the module dependence determining module is used for determining the module dependence relationship information corresponding to the project according to the information of the auxiliary modules depended on by the modules.
Optionally, the configuration information obtaining module includes:
a target configuration acquisition unit configured to acquire target configuration information included in the item;
and the related configuration acquisition unit is used for acquiring configuration information related to the modules contained in the project from the target configuration information according to a preset content keyword so as to obtain the configuration information of the modules contained in the project.
Optionally, the acquired configuration information related to the modules included in the project includes a project identifier of the project, and the apparatus further includes:
and the matching module acquisition module is used for acquiring the configuration information of the module matched with the item identifier from the acquired configuration information related to the module contained in the item.
Optionally, the apparatus further comprises:
an updating module, configured to update module dependency relationship information corresponding to the project based on configuration information of an increased or decreased module if the modules included in the project are increased or decreased;
and the dependency information determining module is used for determining the dependency relationship information of the designated module by using the updated module dependency relationship information corresponding to the project according to the positioning information of the designated module.
Optionally, the target configuration obtaining unit is configured to obtain a storage path where the item is located; and traversing the configuration information files contained in the storage path of the project, and acquiring the information in each configuration information file as the target configuration information contained in the project.
Optionally, the project is an application project based on a spring hierarchical modular framework, and the module is a spring engineering module.
According to the technical scheme provided by the embodiment of the application, the embodiment of the application determines the dependency relationship information of the designated module by the acquired positioning information of the module identifier of the designated module contained in the project and by using the module dependency relationship information corresponding to the project, including the information of the dependency relationship between the modules contained in the project, so that the dependency relationship information of the designated module is automatically acquired through the module dependency relationship information corresponding to the project, the dependency relationship information of the designated module can be efficiently and accurately acquired, and the analysis speed and the accuracy of the result are improved.
Detailed Description
The embodiment of the application provides an information processing method and device.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, an embodiment of the present application provides an information processing method, where an execution subject of the method may be a server or a terminal device, where the terminal device may be a personal computer, and the present application takes the terminal device as an example for description. The method can be applied to determining the dependency relationship of a certain module in an application project, and the method specifically comprises the following steps:
in step S101, location information of a specified module in an item is acquired, and the location information includes a module identifier of the specified module.
The project can be a combination which is designed and developed by selecting various technical means and/or products according to the requirements of users, so that the separated parts are connected into a complete, reliable and effective whole and can work in coordination with each other to exert the whole benefit, specifically, the project of the Sudoku game, the project of radio communication and the like. The designated module can be any module in the project and can be determined according to actual conditions. The positioning information may be information for requesting to acquire a dependency relationship of a specific module, and may specifically be, for example, a query request or an information acquisition request. The module ID may be a name of the module, such as a module a or M1, or may be an encoding, such as an ID (IDentity), specifically 889 or 78, or may be a hash value.
In implementation, to better describe the processing procedure of the step S101, taking the positioning information as an inquiry request as an example, in order to conveniently and quickly find the relevant information of other modules that a certain module depends on, a corresponding application program may be set, where the application program may specifically be an independent application, or may be a functional program or a plug-in a certain application program, for example, a plug-in a browser, or a plug-in a software testing program or a unit testing program, and the like. In order to implement the functions of the application program, a corresponding trigger button, a display window or a page, etc. may be provided, as shown in fig. 2, and may be a display interface of a test program (such as the software test program or the unit test program, etc.), where the display interface includes an item to be tested and modules included in the item, that is, an item 1 and a module a, a module B, a module C, a module D, a module E, a module F, etc. When a user triggers a module identifier (such as a module name) of a certain module (i.e., a designated module) by long-press or right-click, the terminal device may display an operation menu, where the operation menu may include an operation key for acquiring a dependency relationship, and after the user clicks the operation key, the terminal device acquires the module identifier of the designated module triggered by the user and an item identifier of an item where the designated module is located, and may generate a query request (i.e., location information) of the designated module according to the above information.
In step S102, the dependency information of the designated module is determined by using the module dependency information corresponding to the item according to the positioning information of the designated module.
The module dependency relationship information corresponding to the item includes information of dependency relationships among modules included in the item. Dependency information may include module identification such as the name, number, etc. of other modules that depend on the module other than the current module.
In implementation, corresponding module dependency relationship information may be set in advance for each item, where the module dependency relationship information may be dependency relationship information between all modules included in the item, for example, based on the example shown in fig. 2, all modules included in item 1 are: the module a, the module B, the module C, the module D, the module E, and the module F, and the dependency relationship of the 6 modules may be: the modules on which the module a depends are the module B and the module D, the modules on which the module D depends are the module C and the module E, and the module on which the module C depends is the module F, the module dependency relationship corresponding to the item 1 may be: module a-module B, module a-module D-module C-module F, module D-module E, which may also be represented by a dependency tree (also called a full-scale dependency tree), as shown in fig. 3. If each item is provided with a full relationship dependency tree as shown in FIG. 3 above, the dependency information for a given module may be determined from the full relationship dependency tree.
In the process of determining the dependency relationship information of the designated module according to the full-scale relationship dependency tree, after acquiring the query request of the designated module, the module identifier of the designated module may be extracted from the query request, then the module identifier may be searched from the module dependency relationship information corresponding to the item in which the designated module is located according to the module identifier, if the module identifier is found from the module identifier, the information of the modules of all child nodes of the designated module may be extracted from the full-scale relationship dependency tree thereof as the dependency relationship information of the designated module, for example, as shown in fig. 3, if the designated module is module D, the dependency relationship information of module D is module C, module E and module F, that is, the module identifiers of the modules of all child nodes of module D, whose dependency relationship is module D-module C-module F, module D-module E. If the module identifier is not found, prompt information can be output to prompt the user of the error query, and at the moment, the user can query again or stop querying and the like.
It should be noted that, if two or more modules having dependency relationships with each other are included in the full-scale relationship dependency tree, for example, as shown in fig. 3, if a module D and a module a have an interdependence relationship, that is, the module a depends on the module D, and the module D also depends on the module a, if the module D is designated as the module D, the dependency relationship information of the module D includes the module a and the module B in addition to the module C, the module E, and the module F.
The embodiment of the application provides an information processing method, wherein the dependency relationship information of a designated module is determined by using the acquired positioning information of the module identifier of the designated module contained in a project and the module dependency relationship information corresponding to the project including the information of the dependency relationship between modules contained in the project, so that the dependency relationship information of the designated module is automatically acquired through the module dependency relationship information corresponding to the project, the dependency relationship information of the designated module can be efficiently and accurately acquired, and the analysis speed and the accuracy of the result are improved.
Example two
As shown in fig. 4, an execution main body of the method may be a server or a terminal device, where the terminal device may be a personal computer, a mobile phone, a tablet computer, or the like, and the terminal device is taken as an example in the embodiment of the present invention to describe the embodiment more specifically, in the embodiment, an item written by a Java programming language is taken as an example, the item may be an application item based on a spring hierarchical modular framework, and a module in the item may be a spring engineering module.
When determining the dependency relationship information of the designated module, the module dependency relationship information corresponding to the item needs to be used. In practical applications, the process of acquiring the module dependency relationship information may be performed before acquiring the positioning information of the specified module, or after acquiring the positioning information of the specified module for the first time, and after acquiring the module dependency relationship information, when it is necessary to acquire the positioning information of another module in the item again, the acquired module dependency relationship information process may be directly used.
In step S401, location information of a specified module in an item is acquired, and the location information includes a module identifier of the specified module.
The content of the step S401 is the same as the content of the step S101 in the first embodiment, and the processing of the step S401 may refer to the related content of the step S101, which is not described herein again.
In step S402, the configuration information of the module included in the item is acquired.
The configuration information may be set in a corresponding module, for example, the configuration information may be partial information in attribute information of the module, or may also be related information independently set for the module, or may also be annotation information written in advance in program code of the module, and the like. The modules included in the item may be all modules included in the item, or may be modules included in the item and satisfying a predetermined condition, such as modules included in a local system in which the item is located.
In implementation, a spring hierarchical modular framework is commonly used in the development and testing of applications. The spring hierarchical modular framework can be independent of various application servers and the like, and even the support of the application servers is not needed, the functions of the application servers and the like can be provided. In practical applications, the application project based on the spring hierarchical modular framework may include 5 hierarchies, namely a test layer (i.e., test layer), a presentation layer (i.e., web layer), an application layer (i.e., biz layer), a core domain layer (i.e., core layer), and a base layer (i.e., common layer), where each of the layers may correspond to one or more spring engineering modules. Each spring engineering module can be provided with corresponding configuration information, and after the terminal device obtains the positioning information of the designated module in the project, the corresponding project identifier of the project can be determined according to the module identifier of the designated module, or if the positioning information contains the project identifier, the project identifier can be directly obtained from the positioning information. Then, the module (i.e., spring engineering module) contained in the corresponding project can be searched according to the project identification. The configuration information contained in each spring engineering module can be extracted, so that the configuration information of the spring engineering modules contained in the application project based on the spring hierarchical modular framework can be obtained.
Considering that there may be a lot of configuration information included in a certain item, and thus it is necessary to separate the required configuration information from the item by a certain means, a feasible processing method is provided below, and the processing of step S402 may include the following steps one to three.
Step one, acquiring target configuration information contained in the project.
The processing of the step one may refer to the related content of the step S402, and is not described herein again.
The processing of the step one may be various, and besides the processing in the above manner, an optional processing manner is provided as follows, which may specifically include the following: acquiring a storage path of the item; and traversing the configuration information files contained in the storage path of the project, and acquiring the information in each configuration information file as the target configuration information contained in the project.
The storage path may be presented in a URL manner, or may be presented in an identifier and file identifier manner of the storage device, for example, D: \ folder 1\ folder 2\ folder 3\ folder 4, where D represents an identifier of the storage device. The configuration information file may be a file in which the configuration information is located, such as a file in xml format.
In implementation, when an application project is developed or tested through a spring hierarchical modular framework, project management can be performed through a maven mechanism, and the maven mechanism unifies development specifications and tools of the project, unifies jar packages in the management project and the like. The jar packet includes a class and source code level metadata required for implementing a certain property or function in an application project. Under a maven mechanism, the configuration information files can be pom.xml files and Manifest.mf files, wherein the pom.xml files contain all information required by a certain Java project established under a spring hierarchical modular framework, the information comprises basic information of the Java project and information depended by a jar packet, and the information can be used as input information for analyzing and obtaining a full-scale relation dependency tree in the Java project; the Manifest.mf file is located in the Meta-inf directory of each spring engineering module, and defines the module identification (such as the name of the module) of the current spring engineering module and relevant information of startup or context dependency relationship with other modules. Xml files and Manifest mf files may be pre-written by a user or a technician.
After the positioning information of the specified module in the item is obtained, the storage path where the item is located may be extracted and obtained from the positioning information, if the item is stored in the storage device D, the configuration information file included in the storage path where the item is located may be traversed, that is, the pom.xml file and the manifiest.mf file may be obtained from the storage device D and each folder included in the storage device D, information included in the pom.xml file and the manifiest.mf file may be extracted respectively, and the extracted information may be used as target configuration information included in the item.
And step two, acquiring configuration information related to the modules contained in the item from the target configuration information according to a preset content keyword so as to obtain the configuration information of the modules contained in the item.
The content keywords may be any keywords, and may be specifically determined according to actual conditions, for example, keywords for marking an automatically generated configuration information file, keywords for a configuration information file of a test module (i.e., test), and the like. In practical applications, the content keywords may include selection keywords and filtering keywords, where the selection keywords may be used to select configuration information files that satisfy the condition, and the filtering keywords may be used to filter configuration information files that do not satisfy the condition.
In an implementation, one or more content keywords may be preset, and may include one or more selection keywords and/or one or more filtering keywords. For example, the content keywords include a selection keyword and a filtering keyword, a configuration information file corresponding to the target configuration information including the filtering keyword may be acquired from the target configuration information according to one or more filtering keywords, and the acquired configuration information file may be removed from a configuration information file included in a storage path where the item is located. The configuration information file corresponding to the target configuration information including the selected keyword may be further acquired from the target configuration information of the remaining configuration information files according to one or more selected keywords, and the configuration information included in the acquired configuration information file may be used as the configuration information related to the module included in the project, so that the configuration information of the module included in the project may be obtained.
And step three, acquiring the configuration information related to the modules contained in the project, wherein the configuration information includes the project identifiers of the project, and acquiring the configuration information of the modules matched with the project identifiers from the acquired configuration information related to the modules contained in the project.
The item identifier may be a name, a code, and the like of the item, and may be determined specifically according to an actual situation, which is not limited in this embodiment of the application.
In implementation, since the embodiment of the present application is mainly used to determine the dependency relationship of modules included in a project, but is not concerned with an external system or a module in the project on which a certain module depends, the obtained configuration information may be further filtered, an item identifier may be obtained from the obtained configuration information related to the module included in the project, if an item identifier included in certain configuration information is the same as a predetermined item identifier, the configuration information is represented as the configuration information of the module included in the project, if an item identifier included in certain configuration information is not the same as a predetermined item identifier, the configuration information is represented as the configuration information of the module in the external system or the project, and the configuration information of the module included in the project may be obtained as the configuration information of the module finally matched with the item identifier.
In step S403, information of the auxiliary module that each module depends on is determined based on the arrangement information of the modules included in the above items.
In implementation, a parser for analyzing the configuration information may be preset, and the parser may parse the configuration information of each spring engineering module under the Java engineering established in the project, for example, parse a pom. The information of the auxiliary modules depended on by the modules can be obtained through the mode.
In step S404, module dependency relationship information corresponding to the item is determined based on information of the auxiliary module on which each module depends.
In implementation, after obtaining the information of the auxiliary modules that each module depends on, the dependency relationship analysis may be performed according to the information to obtain the dependency relationship of each module, then the key tags may be obtained from the information of each module and the auxiliary modules that each module depends on, and the dependency relationship of each module may be combined based on the key tags, so as to obtain the full-scale relationship dependency tree of the item. The key tag may be set in configuration information (e.g., configuration information in a manifest. mf file) corresponding to the module, and the key tag may have various expression forms, which may be specifically determined according to actual conditions, for example, related information of context dependency relationship with other modules, and the like. The module dependency relationship information corresponding to the item may be determined based on the full-scale relationship dependency tree of the item, that is, the information on the dependency relationship described in the full-scale relationship dependency tree of the item may be used as the module dependency relationship information corresponding to the item.
In step S405, the dependency information of the designated module is determined using the module dependency information corresponding to the item based on the positioning information of the designated module.
The module dependency relationship information corresponding to the item includes information of dependency relationships between modules included in the item.
The processing manner of step S405 may specifically refer to the processing of step S102 in the first embodiment, and is not described herein again.
It should be noted that the module dependency relationship information corresponding to the item obtained in the foregoing manner may be information that changes in real time, and when the module dependency relationship information corresponding to the item changes, the processing in step S404 may be determined based on the changed module dependency relationship information, and an optional processing manner is provided below, which may be specifically referred to as the following: if the modules contained in the project are increased or decreased, updating the module dependency relationship information corresponding to the project based on the configuration information of the increased or decreased modules; and determining the dependency relationship information of the specified module by using the updated module dependency relationship information corresponding to the item according to the positioning information of the specified module.
In implementation, a user or a technician may add a new module to a project at any time, or modify configuration information of one or more modules, or delete one or more modules in the project, based on which, module dependency relationship information corresponding to the project may be updated, specifically, if the user or the technician needs to add, modify, or reduce modules in the project, a related request may be initiated through a preset related function in an application program, the request may include a module identifier of a module in the project that needs to be added, modified, or reduced, configuration information of the module that is added, modified, or reduced may be obtained through the module identifier, based on the above processing procedures, whether the added, modified, or reduced module is a module included in the project may be determined according to a content keyword and an item identifier, respectively, if yes, updating the module dependency relationship information corresponding to the project based on the configuration information of the added, modified or reduced modules, and if not, keeping the module dependency relationship information corresponding to the project unchanged. For the case that the module dependency relationship information corresponding to the item is updated, the dependency relationship information of the specified module may be determined by using the updated module dependency relationship information corresponding to the item according to the positioning information of the specified module, which may be specifically referred to the processing in step S405, and is not described herein again.
The embodiment of the application provides an information processing method, wherein the dependency relationship information of a designated module is determined by using the acquired positioning information of the module identifier of the designated module contained in a project and the module dependency relationship information corresponding to the project including the information of the dependency relationship between modules contained in the project, so that the dependency relationship information of the designated module is automatically acquired through the module dependency relationship information corresponding to the project, the dependency relationship information of the designated module can be efficiently and accurately acquired, and the analysis speed and the accuracy of the result are improved. Moreover, the dependency relationship between all modules in the project can be efficiently and accurately acquired, and the dependency analysis from the acquisition of the basic information files of the project to the modules in the whole processing process is automatically realized, so that the manual analysis cost is saved, and the analysis speed and the accuracy of the result are further improved.
EXAMPLE III
Based on the same idea, the information processing method provided in the embodiment of the present application further provides an information processing apparatus, as shown in fig. 5.
The information processing apparatus includes: a positioning information obtaining module 501 and a dependent information determining module 502, wherein:
a positioning information obtaining module 501, configured to obtain positioning information of a specified module in a project, where the positioning information includes a module identifier of the specified module;
a dependency information determining module 502, configured to determine, according to the positioning information of the designated module, dependency relationship information of the designated module by using module dependency relationship information corresponding to the item,
the module dependency relationship information corresponding to the project comprises information of dependency relationships among modules contained in the project.
In an embodiment of the present application, the apparatus further includes:
the configuration information acquisition module is used for acquiring the configuration information of the modules contained in the project;
an auxiliary information determination module for determining information of an auxiliary module on which each module depends, according to configuration information of the modules included in the project;
and the module dependence determining module is used for determining the module dependence relationship information corresponding to the project according to the information of the auxiliary modules depended on by the modules.
In an embodiment of the present application, the configuration information obtaining module includes:
a target configuration acquisition unit configured to acquire target configuration information included in the item;
and the related configuration acquisition unit is used for acquiring configuration information related to the modules contained in the project from the target configuration information according to a preset content keyword so as to obtain the configuration information of the modules contained in the project.
In this embodiment of the present application, the acquired configuration information related to the modules included in the project includes a project identifier of the project, and the apparatus further includes:
and the matching module acquisition module is used for acquiring the configuration information of the module matched with the item identifier from the acquired configuration information related to the module contained in the item.
In an embodiment of the present application, the apparatus further includes:
an updating module, configured to update module dependency relationship information corresponding to the project based on configuration information of an increased or decreased module if the modules included in the project are increased or decreased;
the dependency information determining module 502 is configured to determine, according to the positioning information of the designated module, dependency relationship information of the designated module by using the updated module dependency relationship information corresponding to the item.
In an embodiment of the present application, the target configuration obtaining unit is configured to obtain a storage path where the item is located; and traversing the configuration information files contained in the storage path of the project, and acquiring the information in each configuration information file as the target configuration information contained in the project.
In the embodiment of the application, the project is an application project based on a spring hierarchical modular framework, and the module is a spring engineering module.
The embodiment of the application provides an information processing device, wherein dependency relationship information of a designated module is determined by using module dependency relationship information corresponding to an item, including dependency relationship information between modules included in the item, through positioning information of a module identifier of the designated module included in the acquired item, so that the dependency relationship information of the designated module is automatically acquired through the module dependency relationship information corresponding to the item, the dependency relationship information of the designated module can be efficiently and accurately acquired, and the analysis speed and the accuracy of a result are improved. Moreover, the dependency relationship between all modules in the project can be efficiently and accurately acquired, and the dependency analysis from the acquisition of the basic information files of the project to the modules in the whole processing process is automatically realized, so that the manual analysis cost is saved, and the analysis speed and the accuracy of the result are further improved.
Example four
Based on the same idea, the information processing apparatus provided in the embodiment of the present application further provides an information processing device, as shown in fig. 6.
The information processing apparatus may be the server or the terminal apparatus provided in the above embodiments.
Information processing apparatus, which may vary considerably in configuration or performance, may include one or more processors 601 and memory 602, where memory 602 may have one or more stored applications or data stored therein. Wherein the memory 602 may be transient or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for an information processing device. Still further, processor 601 may be disposed in communication with memory 602 for executing a series of computer-executable instructions in memory 602 on an information processing device. The information processing apparatus may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, one or more keyboards 606.
In particular, in this embodiment, the information processing apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the information processing apparatus, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
acquiring positioning information of a designated module in a project, wherein the positioning information comprises a module identifier of the designated module;
determining the dependency relationship information of the appointed module by using the module dependency relationship information corresponding to the project according to the positioning information of the appointed module,
the module dependency relationship information corresponding to the project comprises information of dependency relationships among modules contained in the project.
Optionally, the executable instructions, when executed, may further cause the processor to:
acquiring configuration information of modules contained in the project;
determining information of auxiliary modules depended by the modules according to configuration information of the modules contained in the project;
and determining module dependency relationship information corresponding to the project according to the information of the auxiliary modules depended on by the modules.
Optionally, the executable instructions, when executed, may further cause the processor to:
acquiring target configuration information contained in the project;
and acquiring configuration information related to the modules contained in the project from the target configuration information according to a preset content keyword so as to obtain the configuration information of the modules contained in the project.
Optionally, the executable instructions, when executed, may further cause the processor to:
the acquired configuration information related to the modules contained in the project comprises the project identification of the project,
after the configuration information related to the module included in the item is acquired from the target configuration information according to the predetermined content keyword, the method further includes:
and acquiring the configuration information of the module matched with the project identification from the acquired configuration information related to the modules contained in the project.
Optionally, the executable instructions, when executed, may further cause the processor to:
if the modules contained in the project are increased or decreased, updating the module dependency relationship information corresponding to the project based on the configuration information of the increased or decreased modules;
determining the dependency relationship information of the designated module by using the module dependency relationship information corresponding to the project according to the positioning information of the designated module, including:
and determining the dependency relationship information of the designated module by using the updated module dependency relationship information corresponding to the project according to the positioning information of the designated module.
Optionally, the executable instructions, when executed, may further cause the processor to:
acquiring a storage path of the item;
and traversing the configuration information files contained in the storage path of the project, and acquiring the information in each configuration information file as the target configuration information contained in the project.
Optionally, in this embodiment of the application, the project is an application project based on a spring hierarchical modular framework, and the module is a spring engineering module.
The embodiment of the application provides an information processing device, wherein dependency relationship information of a designated module is determined by using module dependency relationship information corresponding to an item, including dependency relationship information between modules included in the item, through positioning information of a module identifier of the designated module included in the acquired item, so that the dependency relationship information of the designated module is automatically acquired through the module dependency relationship information corresponding to the item, the dependency relationship information of the designated module can be efficiently and accurately acquired, and the analysis speed and the accuracy of a result are improved. Moreover, the dependency relationship between all modules in the project can be efficiently and accurately acquired, and the dependency analysis from the acquisition of the basic information files of the project to the modules in the whole processing process is automatically realized, so that the manual analysis cost is saved, and the analysis speed and the accuracy of the result are further improved.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.