Information processing apparatus and library management method
AssigneeCanon Kabushiki Kaisha
InventorKatsuya Sakai
Life of this patent
Estimating the term…
Abstract
As a portion of processing for activation an apparatus or when an application is installed, a Lib management module determines whether there is a plurality of libraries in a setting of a class path, and, in a case of determining that a plurality of libraries are set, expands the set libraries, and after integrating them as a new library, sets the newly generated library as the class path. In addition, the Lib management module deletes libraries that are included in the library after the integration except for those that are directly accessed.
Claims17
An information processing apparatus, comprising:
- a loading unit configured to, when an installed program is executed, open a library that contains a class used by the program and load the class, the loading unit consuming resources of an amount in accordance with a number of opened libraries;
- a determination unit configured to determine whether if a number of libraries that include a class set for the installed program is plural;
- an integration unit configured to integrate classes included in the libraries in a number of integrated libraries that is fewer than the number of libraries if it is determined that the number of libraries is plural;
- and
- a deletion unit configured to delete the pre-integration libraries that include the classes included in the integrated libraries excluding libraries that are accessed without going through the loading unit.
A library management method for an information processing apparatus having loading unit for, when an installed program is executed, opening a library that includes a class used by the program and loading the class, the loading unit consuming resources of an amount that is in accordance with a number of opened libraries, the method comprising:
- determining whether if a number of libraries that include a class set for the installed program is plural;
- integrating classes included in the libraries in a number of integrated libraries that is fewer than the number of libraries if it is determined that the number of libraries is plural;
- and
- deleting the pre-integration libraries that include the classes included in the integrated libraries excluding libraries that are accessed without going through the loading unit.
A non-transitory computer-readable storage medium storing a program for causing a computer to function as
- a loading unit configured to, when an installed program is executed, open a library that contains a class used by the program and load the class, the loading unit consuming resources of an amount in accordance with a number of opened libraries;
- a determination unit configured to determine whether if a number of libraries that include a class set for the installed program is plural;
- an integration unit configured to integrate classes included in the libraries in a number of integrated libraries that is fewer than the number of libraries if it is determined that the number of libraries is plural;
- and
- a deletion unit configured to delete the pre-integration libraries that include the classes included in the integrated libraries excluding libraries that are accessed without going through the loading unit.
Dependencies are inferred from the claim text.