Integration of non-componentized libraries in component-based systems
First Claim
1. A component-based system on at least one computer system, wherein the component-based system allows legacy components to locate necessary artifacts, the component-based system comprising:
- a processor;
a context finder that is installed as a context classloader, wherein the context finder analyzes an execution stack to identify a classloader of a legacy component that initiated a context classloader call during runtime; and
a buddy loading system that determines whether the legacy component requires loading at least one buddy to locate an artifact that cannot be found with a normal delegation model, and the buddy loading system locates and loads the at least one buddy using a predefined policy, wherein the at least one buddy comprises a class or a resource component for locating the artifact for the legacy component, and wherein a requirement of buddy loading is determined by examining a mark-up comprising a descriptor that indicates the legacy component requires at least one buddy, and indicates the predefined policy used to locate the at least one buddy, and wherein the predefined policy includes one of the following;
a dependent policy, a named policy, a global policy, and an execution stack policy.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method for integrating legacy code into a component-based system. A component-based system is provided that allows legacy components to locate necessary artifacts, and includes: a context finder that is installed as a context classloader, wherein the context finder analyzes an execution stack to identify a component that initiated a context classloader call during runtime; and a buddy loading system that examines the component to determine if the component requires buddy loading to locate an artifact and locates the artifact using a predefined policy.
22 Citations
15 Claims
-
1. A component-based system on at least one computer system, wherein the component-based system allows legacy components to locate necessary artifacts, the component-based system comprising:
-
a processor; a context finder that is installed as a context classloader, wherein the context finder analyzes an execution stack to identify a classloader of a legacy component that initiated a context classloader call during runtime; and a buddy loading system that determines whether the legacy component requires loading at least one buddy to locate an artifact that cannot be found with a normal delegation model, and the buddy loading system locates and loads the at least one buddy using a predefined policy, wherein the at least one buddy comprises a class or a resource component for locating the artifact for the legacy component, and wherein a requirement of buddy loading is determined by examining a mark-up comprising a descriptor that indicates the legacy component requires at least one buddy, and indicates the predefined policy used to locate the at least one buddy, and wherein the predefined policy includes one of the following;
a dependent policy, a named policy, a global policy, and an execution stack policy. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product stored on a computer storage medium that allows legacy components to locate necessary artifacts in a component-based system, comprising:
-
program code configured for providing a context finder to be installed as a context classloader, wherein the context finder can analyze an execution stack to identify a classloader of a legacy component that initiated a context classloader call during runtime; and program code configured for examining the legacy component to determine if the component requires loading at least one buddy to locate an artifact that cannot be found with a normal delegation model, and for locating and locating the at least one buddy using a predefined policy, wherein the at least one buddy comprises a class or a resource component for locating the artifact for the legacy component, and wherein a requirement of buddy loading is determined by examining a mark-up comprising a descriptor that indicates the legacy component requires at least one buddy, and indicates the predefined policy used to locate the at least one buddy, and wherein the predefined policy includes one of the following;
a dependent policy, a named policy, a global policy, and an execution stack policy. - View Dependent Claims (9, 10)
-
-
11. A method for allowing legacy components to locate necessary artifacts in component-based system, comprising:
-
loading a context finder as a context classloader; executing a legacy component in which a call is generated using the context classloader during runtime; identifying the legacy component that made the call by searching the execution stack with the context finder; determining if the legacy component includes a mark-up comprising a descriptor that indicates loading at least one buddy is required to locate an artifact that cannot be found with a normal delegation model; examining the mark-up to determine a predefined policy to be used to load and locate the at least one buddy required by the legacy component, wherein the predefined policy includes one of the following;
a dependent policy, a named policy, a global policy, and an execution stack policy; andlocating the artifact using the at least one buddy, wherein the at least one buddy comprises a class or a resource component for locating an artifact for the legacy component. - View Dependent Claims (12, 13, 14, 15)
-
Specification