Browse Prior Art Database

Use of resources for loading dynamically referenced libraries

IP.com Disclosure Number: IPCOM000032460D
Original Publication Date: 2004-Nov-05
Included in the Prior Art Database: 2004-Nov-05
Document File: 1 page(s) / 49K

Publishing Venue

IBM

Abstract

An application can dynamically reference types or resources that are not contained in the libraries that are automatically loaded when the application is loaded. In a Java* environment these references would be resolved by searching the classpath. In the Microsoft .NET environment there is no equivalent to the Java classpath. This article describes a technique for the application loader to load required libraries prior to their use.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 63% of the total text.

Page 1 of 1

Use of resources for loading dynamically referenced libraries

An application can consist of a number of statically referenced libraries. These dependencies are computed at compilation time and the libraries are loaded when the application is loaded. An application can also dynamically reference resources or types that are contained in libraries that are not linked to the application. The problem to solve is how to load the dynamically referenced libraries at application runtime.

    For a Java* application this can be solved by having the required resources available in libraries on the classpath. In Microsoft** .NET environment there is no equivalent and the library containing the required resource must be loaded before that resource is accessed.

    The problem can be solved by adding a resource file to a library that contains a list of libraries that it requires at runtime. This library reference file can then be interrogated by the middleware hosting environment when the application is loaded and the required libraries can then be loaded. This library reference file can be maintained either by the application developer or in some instances can be generated automatically by development tools.

    A library reference file can be included in a library that contains a list of libraries that it will access dynamically. This references file will have a well defined means of locating it, for example a naming convention. When the middleware loads an application it locates all su...