System and method for updating hard-coded dependencies
First Claim
Patent Images
1. A method, comprising:
- discovering, by a processor, one or more instances of external resource access by statically analyzing application code;
specifying, by the processor, addresses of the discovered instances of external resource access;
identifying, by the processor, one or more addresses of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access, the one or more constants being stored in a non-transitory computer readable storage medium;
updating, by the processor, one or more values of the one or more constants in the application code and the configuration repository;
wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants; and
wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses; and
using, by the processor, the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method includes discovering one or more instances of external resource access by statically analyzing application code. One or more locations of constants are identified in the application code and a configuration repository that specify addresses of discovered instances of external resource access. The application code and the configuration repository are updated to change values of the constants to enable migration.
8 Citations
25 Claims
-
1. A method, comprising:
-
discovering, by a processor, one or more instances of external resource access by statically analyzing application code; specifying, by the processor, addresses of the discovered instances of external resource access; identifying, by the processor, one or more addresses of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access, the one or more constants being stored in a non-transitory computer readable storage medium; updating, by the processor, one or more values of the one or more constants in the application code and the configuration repository; wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants; and wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses; and using, by the processor, the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A non-transitory computer readable storage medium comprising a computer readable program, wherein the computer readable program when executed on a computer causes the computer to perform the steps of:
-
discovering one or more instances of external resource access by statically analyzing application code; specifying addresses of the discovered instances of external resource access; identifying one or more addresses of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access; updating one or more values of the one or more constants in the application code and the configuration repository; wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants; and wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses; and using the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A system, comprising:
-
a processor; a non-transitory computer readable medium comprising a computer readable program that executes a tool, wherein the computer readable program when executed by the processor causes the tool to perform the steps of; discovering one or more instances of external resource access by statically analyzing application code; specifying addresses of the discovered instances of external resource access; identifying one or more addresse of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access; updating one or more values of the one or more constants in the application code and the configuration repository; wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants; and wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses; and using the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations. - View Dependent Claims (22, 23, 24, 25)
-
Specification