Apparatus and method for creating a real-time class package to class archive file mapping index
First Claim
1. An apparatus comprising:
- at least one processor;
a memory coupled to the at least one processor;
an application program in the memory;
a class loader for loading a plurality of object oriented classes; and
a class package to class archive file mapping mechanism in the memory and executed by the at least one processor, the class package to class archive file mapping mechanism updating a class package to class archive file mapping index in response to the application program requesting a class to be loaded.
3 Assignments
0 Petitions
Accused Products
Abstract
According to the preferred embodiments, an apparatus and method is described for creating a real-time class package to class archive file mapping index that improves the performance of a class loader to load needed classes in an object oriented programming environment. In preferred embodiments, the class loader includes a mapping mechanism that creates and maintains a real-time class package to file archive mapping index. In preferred embodiments, the mapping mechanism optimizes access to the file archive mapping index. In a preferred embodiment, when the mapping mechanism finds a entry in the file archive mapping index for the package, but the class is not found, the class is searched in the class path beginning from the last file archive listed in the index to optimize the search. In other embodiments, the class loader includes a large package list that is used to further optimize access to the archive index.
19 Citations
20 Claims
-
1. An apparatus comprising:
-
at least one processor;
a memory coupled to the at least one processor;
an application program in the memory;
a class loader for loading a plurality of object oriented classes; and
a class package to class archive file mapping mechanism in the memory and executed by the at least one processor, the class package to class archive file mapping mechanism updating a class package to class archive file mapping index in response to the application program requesting a class to be loaded. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for creating a real-time class package to class archive file index, the method comprising the steps of:
-
(A) receiving a request for a class from an application; and
(B) creating a record in an index in response to the request that correlates a class package with one or more class archive files. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A program product comprising:
-
a class package to class archive file mapping mechanism that updates a class package to class archive file mapping index in response to the application program requesting a class from the class loader; and
recordable computer media bearing the archive maker. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification