Browse Prior Art Database

Abstract context classloader

IP.com Disclosure Number: IPCOM000179194D
Original Publication Date: 2009-Feb-09
Included in the Prior Art Database: 2009-Feb-09
Document File: 1 page(s) / 39K

Publishing Venue

IBM

Abstract

A method to decrease the time spent locating Java* class files, which in turn reduces the overall time spent in the class loading phase, to improve application performance.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 64% of the total text.

Page 1 of 1

Abstract context classloader

Virtual machine environments, such as Java*, dynamically load class definitions in response to application requests to create a specific instance of a particular class. The classloader is then responsible for searching and locating the class definition where this search can be carried out through files held locally to the executing application, or remotely on another server. Once a definition is loaded, then a cascade effect can occur whereby classes that are referenced from the loaded class will in turn be searched for and located. The issue addressed here is how to speed up the location of class files and thus decrease the overall time spent in the class loading phase.

    The proposed solution is to define a set of contexts which describe abstract idea such as 'startup', 'create report' or 'container initialisation' and then associate a set of classes with each context. The classloader would then be modified to accept not only the class name, but also the context in which that class is being used. The classloader then loads all the classes associated with the same context. The advantages to using this are
1) A single pass can be made through all search locations e.g.

network drives.
2) No hierarchical traversal of references is required in order to find out all the classes to load.
3) Allows multiple versions of the same class to exist, so long as they are associated with different contexts.
4) If n...