Runtime extensions
First Claim
1. A method comprising:
- obtaining, at a computing device, a package of information defining an extension to an application program interface (API) of a runtime, the package of information including native program code configured to expose services of different hardware platforms that are not exposed by the API and descriptors that identify the different hardware platforms supported by the extension;
obtaining, at the computing device, a declaration of a target hardware platform for an application program that employs the extension;
comparing, at the computing device, the declaration of the target hardware platform for the application program with the descriptors that identify the different hardware platforms supported by the extension; and
generating, at the computing device, an installable package for the application program if the target hardware platform is supported by the extension, the installable package configured to enable the application program to access services of the target hardware platform;
orproviding a notification if the target hardware platform is not supported by the extension.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, provide a technique for supporting native program code extensions for managed code environments. In one aspect, a method includes the actions of: obtaining a package of information defining an extension to an application program interface of a runtime, the package of information including native program code and descriptors that identify different computing platforms supported by the extension; obtaining a declaration of a target computing platform for an application program that employs the extension; comparing the declaration of the target computing platform for the application program with the descriptors that identify the different computing platforms supported by the extension; if the target computing platform is supported by the extension, generating an installable package for the application program; and if the target computing platform is not supported by the extension, providing a notification corresponding thereto.
-
Citations
22 Claims
-
1. A method comprising:
-
obtaining, at a computing device, a package of information defining an extension to an application program interface (API) of a runtime, the package of information including native program code configured to expose services of different hardware platforms that are not exposed by the API and descriptors that identify the different hardware platforms supported by the extension; obtaining, at the computing device, a declaration of a target hardware platform for an application program that employs the extension; comparing, at the computing device, the declaration of the target hardware platform for the application program with the descriptors that identify the different hardware platforms supported by the extension; and generating, at the computing device, an installable package for the application program if the target hardware platform is supported by the extension, the installable package configured to enable the application program to access services of the target hardware platform;
orproviding a notification if the target hardware platform is not supported by the extension. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. One or more non-transitory computer-readable storage devices comprising processor-executable instructions that, responsive to execution by one or more processors, cause the one or more processors to perform operations comprising:
-
obtaining, at a first device, a package of information defining an extension to an application program interface (API) of a runtime, the package of information including native program code configured to expose a service of a hardware platform that is not exposed by the API of the runtime and descriptors that identify different hardware platforms supported by the extension; obtaining, at the first device, a declaration of a hardware platform of a second device having application program that employs the extension; comparing, at the first device, the declaration of the hardware platform of the second device with the descriptors that identify the different hardware platforms supported by the extension; and generating, at the first device, an installable package for the application program of the second device if the hardware platform of the second device is supported by the extension, the installable package configrued to enable the application program to access, via the extension, a service of the hardware platform of the second device;
orproviding a notification that the hardware computing platform of the second device is not supported by the extension. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system comprising:
-
one or more processors; and a memory coupled to the one or more processors and including instructions that are executable to implement a cross-platform managed code environment to; obtain a package of information defining an extension to an application program interface (API) of a runtime, the package of information including native program code configured to expose services of a hardware platform that are not exposed by the API and descriptors that identify different hardware platforms supported by the extension; and use a version of the extension written in runtime code that is independent of the different hardware platforms supported by the extension if a hardware platform is not specified;
or use native program code corresponding to the hardware platform if the hardware platform is specified, wherein the cross-platform managed code environment is further implemented to;
obtain a declaration of a target hardware platform of a device that implements an application program that employs the extension;
compare the declaration of the target hardware platform of the device with the descriptors that identify the different hardware platforms supported by the extension; and
generate an installable package for the device if the target hardware platform is supported by the extension, the installable package configured to enable the application program to access a service of the target hardware platform of the device;
or provide a notification if the target hardware platform of the device is not supported by the extension. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22)
-
Specification