CN103810172B - The method and apparatus of formation component dependence graph - Google Patents

The method and apparatus of formation component dependence graph Download PDF

Info

Publication number
CN103810172B
CN103810172B CN201210438593.0A CN201210438593A CN103810172B CN 103810172 B CN103810172 B CN 103810172B CN 201210438593 A CN201210438593 A CN 201210438593A CN 103810172 B CN103810172 B CN 103810172B
Authority
CN
China
Prior art keywords
component
dependence
text
dependency information
information text
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
CN201210438593.0A
Other languages
Chinese (zh)
Other versions
CN103810172A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201210438593.0A priority Critical patent/CN103810172B/en
Publication of CN103810172A publication Critical patent/CN103810172A/en
Application granted granted Critical
Publication of CN103810172B publication Critical patent/CN103810172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention provides a kind of method and apparatus of formation component dependence graph.Methods described includes:The corresponding bytecode information of each component is read, according to the dependency information text of the corresponding bytecode information formation component of each component;Obtain selected component;Searched in dependence between the component of the dependency information text entry and obtain the dependence related to the selected component;The dependence obtained according to the lookup renders the corresponding component dependencies figure of the generation selected component.The system includes:Read module, selected acquisition module, searching modul and rendering module.Flexibility can be improved using the present invention.

Description

The method and apparatus of formation component dependence graph
Technical field
The present invention relates to Computer Applied Technology, the method and dress of more particularly to a kind of formation component dependence graph Put.
Background technology
With the development of computer technology, more powerful function is provided often through various application systems, to meet User's request.For example, based on J2EE(Java 2 Platform, Enterprise Edition, Java 2 Platform Enterprise Edition) This Enterprise Development Platform deployment multiple components obtained by application system in, and then component and several components it Between cooperation realize corresponding function.Therefore, there will be between multiple components included by application system it is complicated according to The relation of relying.
Dependence between the component disposed for analysis application system, it will usually use some Open-Source Tools, example Such as JarAnalyzer, this component relies on management tool, and all of component can be analyzed in organization directory, and generation is identified The text of the dependence between component.
This article presents is due to being to show the dependence between component in the form of character, it is difficult to more clearly enter The description of row dependence, therefore, it is also desirable to pass through graphic plotting instrument retouch the dependence between component in text Visual figure, i.e. component relation dependency graph are plotted, for example, graphic plotting instrument can be the Graphviz for increasing income(Graph Visualization Software)Instrument.
However, during formation component relationship graph, because text is contained all groups in application system Dependence between part, therefore, the component relation dependency graph for obtaining is drawn by graphic plotting instrument will also contain institute There is the dependence between component, it is impossible to which the dependence showed existing for the component only according to user's component generation of interest is closed System, lacks flexibility.
The content of the invention
Based on this, it is necessary to lack the problem of flexibility for component dependencies map generalization, there is provided one kind can be improved The method of the formation component dependence graph of flexibility.
Additionally, there is a need to providing a kind of device of the formation component dependence graph that can improve flexibility.
A kind of method of formation component dependence graph, comprises the following steps:
The corresponding bytecode information of each component is read, according to the corresponding bytecode information formation component of each component Dependency information text;
Obtain selected component;
Searched in dependence between the component of the dependency information text entry and obtained and the selected group The related dependence of part;
The dependence obtained according to the lookup renders the corresponding component dependencies figure of the generation selected component.
It is described to read the corresponding bytecode information of each component wherein in one embodiment, according to each component The step of dependency information text of corresponding bytecode information formation component is:
The byte code files for including are read in each component, and reads the corresponding bag title of the byte code files one by one The bag title relied on the byte code files, forms the corresponding bytecode information of each component;
The group that the bag title that byte code files according to the corresponding bytecode information record of each component are relied on is relied on Part, related corresponding dependence is obtained by each component to the component for relying on;
Dependency information text is generated by the dependence for obtaining.
It is described to be the step of obtain selected component wherein in one embodiment:
According to dependency information text formation component list in interface, and obtain component in described the component list Selected operation obtain the selected component.
It is described between the component of the dependency information text entry in dependence wherein in one embodiment Searching the step of obtaining the dependence related to the selected component is:
The dependence of the dependency information text entry search and obtains related to the selected component Dependence;
Split the text that the dependency information text obtains recording the dependence searched and obtain.
Wherein in one embodiment, the dependence obtained according to the lookup renders the generation selected group Also include after the step of part corresponding component dependencies figure:
The component to be drilled through that selection is obtained in securing component dependence graph;
Searched in the dependence of the dependency information text entry it is related to the component to be drilled through according to The relation of relying;
Split the text of the dependence that the dependency information text obtains recording related to the component to be drilled through This;
Text according to the dependence related to the component to be drilled through render and obtains group to be drilled through Component dependencies figure belonging to part.
A kind of device of formation component dependence graph, including:
Read module, for reading the corresponding bytecode information of each component, according to the corresponding byte of each component The dependency information text of code information formation component;
Selected acquisition module, for obtaining selected component;
Searching modul, in the dependence between the component of the dependency information text entry search obtain with The related dependence of the selected component;
Rendering module, for rendering generation corresponding group of the selected component according to the dependence for obtaining of searching Part dependence graph.
Wherein in one embodiment, read module includes:
Byte code files processing unit, for reading the byte code files for including in each component, and reads institute one by one The bag title that the corresponding bag title of byte code files and the byte code files are relied on is stated, the corresponding byte of each component is formed Code information;
Relation acquisition unit, for the bag relied on according to the byte code files of the corresponding bytecode information record of each component The component that title is relied on, related corresponding dependence is obtained by each component to the component for relying on;
Text generation unit, for generating dependency information text by the dependence for obtaining.
Wherein in one embodiment, the selected acquisition module is additionally operable to according to the dependency information text on boundary Formation component list in face, and obtain the selected operation of component in described the component list and obtain the selected component.
Wherein in one embodiment, the searching modul includes:
Relation searching unit, for the dependence to the dependency information text entry search and obtains and institute State the related dependence of selected component;
Split cells, obtains recording the dependence that the lookup is obtained for splitting the dependency information text Text.
Wherein in one embodiment, the selected acquisition module is additionally operable to choose in securing component dependence graph obtain Component to be drilled through;
Searching modul is additionally operable to be searched in the dependence of the dependency information text entry and waits to drill through with described The related dependence of component, and split the dependency information text and obtain recording related to the component to be drilled through Dependence text;
The rendering module is additionally operable to be carried out according to the text of the dependence related to the component to be drilled through Render the component dependencies figure for obtaining belonging to component to be drilled through.
The method and apparatus of above-mentioned formation component dependence graph, by reading the corresponding bytecode information of each component Dependency information text will be generated afterwards, and then be searched and selected in the dependence of dependency information text entry The related dependence of component, when and carry out rendering for component dependencies figure according to the dependence that obtains is searched, due to Selected component is the component of current concern, therefore renders the component institute that the component dependencies figure for obtaining will show current concern The all dependences for possessing, it is no longer necessary to checked from the component dependencies figure of the dependence for containing all component and worked as The dependence that the component of concern possesses, flexibility is improve, and due to only generating, office related to the component of concern The component dependencies figure in portion, therefore will also cost savings the time spent by formation component dependence graph.
Brief description of the drawings
Fig. 1 is the method flow diagram of formation component dependence graph in one embodiment;
Fig. 2 gives birth to read the corresponding bytecode information of each component in Fig. 1 according to the corresponding bytecode information of each component Into the method flow diagram of the dependency information text of component;
Fig. 3 is to search in dependence in Fig. 1 to obtain and select between the component of dependency information text entry The method flow diagram of the related dependence of component;
Fig. 4 is the method flow diagram of formation component dependence graph in another embodiment;
Fig. 5 is the structural representation of the device of formation component dependence graph in one embodiment;
Fig. 6 is the structural representation of read module in Fig. 5;
Fig. 7 is the structural representation of searching modul in Fig. 5.
Specific embodiment
As shown in figure 1, in one embodiment, a kind of method of formation component dependence graph comprises the following steps:
Step S110, reads the corresponding bytecode information of each component, according to the corresponding bytecode information life of each component Into the dependency information text of component.
In the present embodiment, component is reusable functional module in application system framework, can be by jar file(Java Archive, Java archive file)To realize, wherein, each jar file contains several byte code files(Class File), each byte code files are deposited according to Jar bags title, and each byte code files have corresponding bag title And all bag titles that the byte code files are relied on, therefore, the corresponding bag title of each byte code files is in component The corresponding bag title of the component, all bag titles that byte code files are relied on are the corresponding bag of component that the component is relied on Title.
Bytecode information corresponding to each component is included corresponding to the component of the corresponding bag title of the component and dependence Bag title.It is that can obtain the dependence that exists between two components according to the corresponding bytecode information of component, and then records Dependency information text is formed in text, for example, the dependence recorded in dependency information text can be with It is the form of " component A → component B ", for representing the dependence between component A and component B, wherein, component A is relying party, Component B is the side of being relied on.In a preferred embodiment, dependency information text is described using DOT language, after facilitating The continuous drafting for being patterned interface.
Step S130, obtains selected component.
In the present embodiment, active user's a certain component of interest is obtained by the selected operation to component, it is right to facilitate The dependence of the component is analyzed.
In one embodiment, the detailed process of above-mentioned steps S130 is:According to dependency information text in interface The selected operation of component obtains selected component in formation component list, and securing component list.
In the present embodiment, be applied all component and group included in system architecture according to dependency information text Dependence between part, and then form by list is shown in interface.User can be by the column of assemblies checked in interface Table realizes the selected operation of the component of current concern, and any component in the component list can be chosen, greatly facilitated User carries out the analysis of component dependencies, improves flexibility.
Step S150, searches in dependence between the component of dependency information text entry and obtains and the group selected The related dependence of part.
In the present embodiment, the dependence to being recorded in dependency information text search and obtains several and select The related dependence of component, the component recorded in the dependence that lookup is obtained necessarily contains selected component, but, Selected component can be as relying party in the dependence for obtaining is searched, it is also possible to the side of being relied on.
Step S170, the dependence obtained according to lookup renders the selected corresponding component dependencies of component of generation Figure.
In the present embodiment, the dependence related to selected component is clearly shown by the form of graphing Come, to facilitate user to check.Further, searching the dependence for obtaining is described with DOT language, because DOT language is A kind of text pattern description language, by Open-Source Tools bag Graphviz(GraphVisualization Software)Draw The figure of DOT language description, therefore, it is possible to very easily carry out rendering for component dependencies figure, resulting component is relied on Graph of a relation will be image file storage format(PNG).
As shown in Fig. 2 in one embodiment, the detailed process of above-mentioned steps S110 is:
Step S111, reads the byte code files for including in each component, and it is corresponding to read byte code files one by one The bag title that bag title and byte code files are relied on, forms the corresponding bytecode information of each component.
In the present embodiment, the reading of bag title is carried out to each component one by one, to obtain the byte that each component is included The bag title that the corresponding bag title of code file and the byte code files are relied on, the byte code files that each component is included are corresponding The bag title that bag title and the byte code files are relied on constitutes the bytecode information of this component, and caching component bytecode Information.
Step S113, the bag title that the byte code files according to the corresponding bytecode information record of each component are relied on is obtained The component of dependence, related corresponding dependence is obtained by each component to the component for relying on.
In the present embodiment, the bag title that the byte code files recorded from the corresponding bytecode information of component are relied on can be obtained To the component that there is dependence with the component, i.e., for the component for obtaining, also there will be in the dependence of the component And selected component related dependant relation.
Step S115, dependency information text is generated by the dependence for obtaining.
In the present embodiment, several dependences that will be obtained save as the form of text, to obtain dependency information Text.
As shown in figure 3, in one embodiment, the detailed process of above-mentioned S150 is:
Step S151, to the dependence of dependency information text entry search and obtains related to the component selected Dependence.
In the present embodiment, the content recorded in dependency information text search and obtains related to the component selected Dependence, it is selected component that two components recorded in the dependence that obtains of lookup necessarily have one.
Step S153, splits the text that dependency information text obtains the dependence that record search is obtained.
In the present embodiment, excluded in dependency information text and the incoherent dependence of component selected, fractionation Go out dependence only related to selected component, and save as the form of text.In a preferred embodiment, in the text for preserving The dependence related to selected component recorded in this is also using the description of DOT language.
As shown in figure 4, in another embodiment, also including after above-mentioned steps S170:
Step S210, the component to be drilled through that selection is obtained in securing component dependence graph.
In the present embodiment, user search render the component dependencies figure for obtaining when, also dependent on current demand from The component dependencies figure of displaying carries out the selection of component again, checks related to the component chosen again with further request Component dependencies figure, the upward of any component drills through and drills down in realizing component dependencies figure.
Step S230, searched in the dependence of dependency information text entry it is related to component to be drilled through according to The relation of relying.
In the present embodiment, searched from the dependency information text for preserving and obtain the dependence related to component to be drilled through Relation, the mode for searching dependence is identical with the lookup mode of the above-mentioned dependence related with selected component, herein not Repeat again.
Step S250, splits dependency information text and obtains recording the dependence related to the component to be drilled through Text.
In the present embodiment, according to the dependence that lookup is obtained, excluded in dependency information text and obtained with lookup The different dependence of dependence, and save as the form of text, only contained group to be drilled through to split The text of the related dependence of part.
Step S270, according to the text of the dependence related to the component to be drilled through render and obtains waiting to drill through Component belonging to component dependencies figure.
As shown in figure 5, in one embodiment, a kind of device of formation component dependence graph, including read module 110th, acquisition module 130, searching modul 150 and rendering module 170 are selected.
Read module 110, for reading the corresponding bytecode information of each component, according to the corresponding bytecode of each component The dependency information text of information formation component.
In the present embodiment, component is reusable functional module in application system framework, can be realized by jar file, Wherein, each jar file contains several byte code files(Class files), each byte code files are according to Jar The storage of bag title, and each byte code files have all bags that corresponding bag title and the byte code files are relied on Title, therefore, the corresponding bag title of each byte code files is the corresponding bag title of the component, byte code files institute in component The all bag titles for relying on are the corresponding bag title of component that the component is relied on.
Bytecode information corresponding to each component is included corresponding to the component of the corresponding bag title of the component and dependence Bag title.Read module 110 is that the dependence that exists is closed between can obtain two components according to the corresponding bytecode information of component System, and then be recorded in dependency information text is formed in text, for example, dependency information text recorded according to Bad relation can be the form of " component A → component B ", for representing the dependence between component A and component B, wherein, component A is relying party, and component B is the side of being relied on.In a preferred embodiment, dependency information text is described using DOT language , to facilitate the follow-up drafting for being patterned interface.
Selected acquisition module 130, for obtaining selected component.
In the present embodiment, selected acquisition module 130 obtains certain of interest of active user by the selected operation to component One component, to facilitate the dependence to the component to be analyzed.
In another embodiment, above-mentioned selected acquisition module 130 is additionally operable to according to dependency information text at interface Middle formation component list, and the selected operation of component obtains selected component in securing component list.
In the present embodiment, selected acquisition module 130 is applied in system architecture according to dependency information text and includes All component and component between dependence, and then form by list is shown in interface.User can be by looking into The component list seen in interface realizes the selected operation of the component of current concern, and any component in the component list can carry out Choose, greatly facilitating user carries out the analysis of component dependencies, improves flexibility.
Searching modul 150, in the dependence between the component of dependency information text entry search obtain with The related dependence of selected component.
In the present embodiment, searching modul 150 is searched the dependence recorded in dependency information text Several dependences related to selected component, the component recorded in the dependence that lookup is obtained necessarily contains selected Component, but, selected component can be as relying party in the dependence for obtaining is searched, it is also possible to the side of being relied on.
Rendering module 170, for according to search the dependence that obtains render the selected corresponding component of component of generation according to Rely graph of a relation.
In the present embodiment, rendering module 170 is by the form of graphing by the dependence related to selected component Clearly show, to facilitate user to check.Further, searching the dependence for obtaining is described with DOT language, by It is a kind of text pattern description language in DOT language, the figure that DOT language is described is drawn by Open-Source Tools bag Graphviz, Therefore, it is possible to very easily carry out rendering for component dependencies figure, resulting component dependencies figure will be image file Storage format(PNG).
As shown in fig. 6, in one embodiment, above-mentioned read module 110 includes byte code files processing unit 111, closes It is acquiring unit 113 and text generation unit 115.
Bytecode processing unit 111, for reading the byte code files for including in each component, and reads byte one by one The bag title that the corresponding bag title of code file and byte code files are relied on, forms the corresponding bytecode information of each component.
In the present embodiment, bytecode processing unit 111 carries out the reading of bag title to each component one by one, each to obtain The bag title that the corresponding bag title of byte code files and the byte code files that component is included are relied on, what each component was included The bag title that the corresponding bag title of byte code files and the byte code files are relied on constitutes the bytecode information of this component, and The bytecode information of caching component.
Relation acquisition unit 113, for what is relied on according to the corresponding bytecode information record byte code files of each component The component that bag title is relied on, related corresponding dependence is obtained by each component to the component for relying on.
In the present embodiment, the byte code files that Relation acquisition unit 113 is recorded from the corresponding bytecode information of component according to Bad bag title can obtain the component that there is dependence with the component, i.e., for the component for obtaining, the component according to Also there will be and selected component related dependant relation in the relation of relying.
Text generation unit 115, dependency information text is generated for the dependence by obtaining.
In the present embodiment, several dependences that text generation unit 115 will be obtained save as the form of text, with To dependency information text.
As shown in fig. 7, in one embodiment, above-mentioned searching modul 150 includes relation searching unit 151 and split cells 153。
Relation searching unit 151, for the dependence to dependency information text entry search and obtains and choosing The related dependence of fixed component.
In the present embodiment, the content that relation searching unit 151 is recorded in dependency information text is searched The dependence related to selected component, it is selected that two components recorded in the dependence that lookup is obtained necessarily have one Component.
Split cells 153, the text of the dependence that record search is obtained is obtained for splitting dependency information text.
In the present embodiment, split cells 153 excluded in dependency information text it is incoherent with the component selected according to The relation of relying, splits out dependence only related to selected component, and save as the form of text.In preferred embodiment In, the dependence related to selected component recorded in the text for preserving is also using the description of DOT language.
In another embodiment, in the device of above-mentioned formation component dependence graph, above-mentioned selected acquisition module 130 is also For the component to be drilled through that selection in securing component dependence graph is obtained.
In the present embodiment, user search render the component dependencies figure for obtaining when, also dependent on current demand from The component dependencies figure of displaying carries out the selection of component again, checks related to the component chosen again with further request Component dependencies figure, the upward of any component drills through and drills down in realizing component dependencies figure.
Above-mentioned searching modul 150 is additionally operable to be searched and to be drilled through in the dependence of dependency information text entry The related dependence of component, and split dependency information text and obtain the record dependence related to component to be drilled through Text.
In the present embodiment, searching modul 150 is searched from the dependency information text for preserving and obtained and group to be drilled through The related dependence of part, searches the mode of dependence and the lookup mode of the above-mentioned dependence related with selected component It is identical, will not be repeated here.
The dependence that searching modul 150 is obtained according to lookup, excludes in dependency information text and is obtained with lookup The different dependence of dependence, and save as the form of text, only contained group to be drilled through to split The text of the related dependence of part.
Above-mentioned rendering module 170 is additionally operable to according to the text of the dependence related to component to be drilled through render Component dependencies figure belonging to component to be drilled through.
The method and apparatus of above-mentioned formation component dependence graph, by reading the corresponding bytecode information of each component Dependency information text will be generated afterwards, and then be searched and selected in the dependence of dependency information text entry The related dependence of component, when and carry out rendering for component dependencies figure according to the dependence that obtains is searched, due to Selected component is the component of current concern, therefore renders the component institute that the component dependencies figure for obtaining will show current concern The all dependences for possessing, it is no longer necessary to checked from the component dependencies figure of the dependence for containing all component and worked as The dependence that the component of concern possesses, flexibility is improve, and due to only generating, office related to the component of concern The component dependencies figure in portion, therefore will also cost savings the time spent by formation component dependence graph.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of method of formation component dependence graph, comprises the following steps:
Read the corresponding bytecode information of each component, according to the corresponding bytecode information formation component of each component according to Rely relation information text;
Obtain selected component;
Searched in dependence between the component of the dependency information text entry and obtained and the selected component phase The dependence of pass, it is described between the component of the dependency information text entry in dependence search obtain with it is described The step of dependence of selected component correlation, includes:Dependence to the dependency information text entry is looked into The dependence related to the selected component is found, the dependency information text is split and is obtained recording the lookup The text of the dependence for obtaining;
The dependence obtained according to the lookup renders the corresponding component dependencies figure of the generation selected component.
2. the method for formation component dependence graph according to claim 1, it is characterised in that each component of reading Corresponding bytecode information, dependency information text according to the corresponding bytecode information formation component of each component Step is:
The byte code files for including are read in each component, and reads the corresponding bag title of the byte code files and institute one by one The bag title of byte code files dependence is stated, the corresponding bytecode information of each component is formed;
The component that the bag title that byte code files according to the corresponding bytecode information record of each component are relied on is relied on, will Each component is related to the component for relying on to obtain corresponding dependence;
Dependency information text is generated by the dependence for obtaining.
3. the method for formation component dependence graph according to claim 1, it is characterised in that the selected group of the acquisition The step of part is:
According to dependency information text formation component list in interface, and obtain the choosing of component in described the component list Fixed operation obtains the selected component.
4. the method for formation component dependence graph according to claim 1, it is characterised in that described according to the lookup Also include after the step of dependence for obtaining renders the generation selected component corresponding component dependencies figure:
The component to be drilled through that selection is obtained in securing component dependence graph;
The dependence related to the component to be drilled through is searched in the dependence of the dependency information text entry to close System;
Split the text of the dependence that the dependency information text obtains recording related to the component to be drilled through;
Text according to the dependence related to the component to be drilled through render and obtains component institute to be drilled through The component dependencies figure of category.
5. a kind of device of formation component dependence graph, it is characterised in that including:
Read module, for reading the corresponding bytecode information of each component, according to the corresponding bytecode letter of each component Cease the dependency information text of formation component;
Selected acquisition module, for obtaining selected component;
Searching modul, in the dependence between the component of the dependency information text entry search obtain with it is described The related dependence of selected component, the searching modul includes:Relation searching unit, for the dependency information The dependence of text entry search and obtains the dependence related to the selected component;Split cells, for tearing open The dependency information text is divided to obtain recording the text of the dependence searched and obtain;
Rendering module, for according to it is described search the dependence that obtains render the corresponding component of the generation selected component according to Rely graph of a relation.
6. the device of formation component dependence graph according to claim 5, it is characterised in that read module includes:
Byte code files processing unit, for reading the byte code files for including in each component, and reads the word one by one The bag title that the section corresponding bag title of code file and the byte code files are relied on, forms the corresponding bytecode letter of each component Breath;
Relation acquisition unit, for the bag title relied on according to the byte code files of the corresponding bytecode information record of each component The component for being relied on, related corresponding dependence is obtained by each component to the component for relying on;
Text generation unit, for generating dependency information text by the dependence for obtaining.
7. the device of formation component dependence graph according to claim 5, it is characterised in that the selected acquisition module It is additionally operable to according to dependency information text formation component list in interface, and obtains component in described the component list Selected operation obtains the selected component.
8. the device of formation component dependence graph according to claim 5, it is characterised in that the selected acquisition module It is additionally operable to choose the component to be drilled through for obtaining in securing component dependence graph;
Searching modul is additionally operable to be searched in the dependence of the dependency information text entry and the group to be drilled through The related dependence of part, and split the dependency information text obtain recording it is related to the component to be drilled through according to The text of the relation of relying;
The rendering module is additionally operable to be rendered according to the text of the dependence related to the component to be drilled through Obtain the component dependencies figure belonging to component to be drilled through.
CN201210438593.0A 2012-11-06 2012-11-06 The method and apparatus of formation component dependence graph Active CN103810172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210438593.0A CN103810172B (en) 2012-11-06 2012-11-06 The method and apparatus of formation component dependence graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210438593.0A CN103810172B (en) 2012-11-06 2012-11-06 The method and apparatus of formation component dependence graph

Publications (2)

Publication Number Publication Date
CN103810172A CN103810172A (en) 2014-05-21
CN103810172B true CN103810172B (en) 2017-07-04

Family

ID=50706957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210438593.0A Active CN103810172B (en) 2012-11-06 2012-11-06 The method and apparatus of formation component dependence graph

Country Status (1)

Country Link
CN (1) CN103810172B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183760B (en) * 2015-07-24 2020-04-10 北京奇虎科技有限公司 Webpage component loading method and device
CN110007920B (en) * 2018-01-04 2022-07-29 阿里巴巴集团控股有限公司 Method and device for acquiring code dependency relationship and electronic equipment
CN109558139A (en) * 2018-11-21 2019-04-02 北京城市网邻信息技术有限公司 Marker method, device, computer equipment and the storage medium of component dependencies
CN111324333B (en) * 2018-12-17 2022-08-30 中移(杭州)信息技术有限公司 Software development method and device based on componentization
CN110286894B (en) * 2019-05-09 2023-07-04 华自科技股份有限公司 Script generation method, script generation device, computer equipment and storage medium
CN110442399B (en) * 2019-08-09 2022-08-16 广州小鹏汽车科技有限公司 Method and device for executing read Native service of application, storage medium and terminal equipment
CN111736836B (en) * 2020-07-22 2020-11-17 平安国际智慧城市科技股份有限公司 Component configuration method and device based on relational graph and computer readable storage medium
CN111967017B (en) * 2020-07-28 2023-06-02 深圳开源互联网安全技术有限公司 Method, device, terminal equipment and storage medium for generating dependency relationship
CN115048097B (en) * 2022-08-15 2022-10-28 湖南云畅网络科技有限公司 Front-end unified packaging compiling system and method for low codes

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567092A (en) * 2010-12-08 2012-07-11 微软公司 Creation and termination of component scopes
CN102572596A (en) * 2010-12-17 2012-07-11 北京国微集成技术有限公司 Management method of application assemblies and multi-media device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166983A1 (en) * 2010-12-28 2012-06-28 Hilmar Demant Integrated metadata and nested authorizations in a user interface framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567092A (en) * 2010-12-08 2012-07-11 微软公司 Creation and termination of component scopes
CN102572596A (en) * 2010-12-17 2012-07-11 北京国微集成技术有限公司 Management method of application assemblies and multi-media device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
COM组件系统依赖分析方法与回归测试研究;刘倩;《中国优秀硕士学位论文全文数据库信息科技辑》;20120715(第07期);第1-53页 *

Also Published As

Publication number Publication date
CN103810172A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
CN103810172B (en) The method and apparatus of formation component dependence graph
US9760347B2 (en) Method and system to identify GUI objects for non-markup-language-presented applications
CN106462399B (en) Code is recommended
US10452768B2 (en) Managing source annotation metadata
Kong et al. Delta: a tool for representing and comparing workflows
CN107622014A (en) Test report generation method and device, readable storage medium and computer equipment
WO2005098683A3 (en) Techniques for management and generation of web forms
US20090299964A1 (en) Presenting search queries related to navigational search queries
US8312369B2 (en) Information display apparatus, method, and recording medium for saving and displaying note information in association with contextual information
JP5587989B2 (en) Providing patent maps by viewpoint
CN109308254B (en) Test method, test device and test equipment
Goloboff et al. GB‐to‐TNT: facilitating creation of matrices from GenBank and diagnosis of results in TNT
EP1315103B1 (en) File search method and apparatus, and index file creation method and device
Milo et al. React: Context-sensitive recommendations for data analysis
US20100082594A1 (en) Building a topic based webpage based on algorithmic and community interactions
JPWO2010061538A1 (en) Information search apparatus, information search method, and program
Su Capturing exploration to improve software architecture documentation
US20120150899A1 (en) System and method for selectively generating tabular data from semi-structured content
US9286349B2 (en) Dynamic search system
Burch et al. An analysis and visualization tool for DBLP data
CN114489829A (en) ArcMap-based remote sensing image sample labeling method
US20080147604A1 (en) Voice Documentation And Analysis Linking
Moseler et al. The CodeSparks Framework–Augmenting Source Code with Glyph-based Visualizations
Jennex Ubiquitous Developments in Knowledge Management: Integrations and Trends: Integrations and Trends
JP2009128937A (en) Web browsing action feature extracting device and program

Legal Events

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