Invention Grant
US08214811B2 Instantiating an interface or abstract class in application code
有权
在应用程序代码中实例化一个接口或抽象类
- Patent Title: Instantiating an interface or abstract class in application code
- Patent Title (中): 在应用程序代码中实例化一个接口或抽象类
-
Application No.: US11551892Application Date: 2006-10-23
-
Publication No.: US08214811B2Publication Date: 2012-07-03
- Inventor: Roland Barcia , Kulvir S. Bhogal , Geoffrey M. Hambrick , Robert R. Peterson
- Applicant: Roland Barcia , Kulvir S. Bhogal , Geoffrey M. Hambrick , Robert R. Peterson
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Stephen J. Walder, Jr.; David A. Mims, Jr.
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
Mechanisms for instantiating an interface or abstract class in application code are provided. An object-oriented programming language is extended such that interfaces and abstract classes can be instantiated in application code without a concrete class specified. Metadata is defined which maps each interface or abstract class instantiation in the application code to a concrete class to be used either by the compiler at build time, or the virtual machine at runtime. Once the appropriate concrete class is determined from the metadata, the class is instantiated with a conventional class loader. The metadata may be provided, for example, as a separate file, such as a markup language file, defined with a virtual machine switch, as annotations in the application code, or the like.
Public/Granted literature
- US20080127070A1 SYSTEM AND METHOD FOR INSTANTIATING AN INTERFACE OR ABSTRACT CLASS IN APPLICATION CODE Public/Granted day:2008-05-29
Information query