Patent ID: 7478408

Claim:
An electronic device for accessing objects executing in a platform dependent environment from objects executing in a platform independent environment, the platform independent environment and the platform dependent environment configured to execute in the electronic device, the electronic device comprising: a processor; a platform independent environment configured to execute on the processor; a platform dependent environment configured to execute on the processor, wherein the platform dependent environment is accessible to the platform independent environment; a first object that executes in a first process in the platform independent environment, wherein the first object provides dynamic access to other objects in the platform independent environment to invoke a second object in a second process that executes in the platform dependent environment, wherein the second object is a platform dependent object that exposes a native interface; a native library of the platform dependent environment wherein the access to the second object is via the native interface exposed by the second object within the native library; and a native wrapper object executing in the platform dependent environment that is accessible to the platform independent environment, wherein the native wrapper object is dynamically created to invoke the second object in the second process, and wherein the native wrapper object stores information about at least one of the platform independent and the platform dependent objects, wherein the native wrapper object receives data from the first object executing in the platform independent environment and communicates the data to the second object and wherein the native wrapper object receives data from the second object executing in the platform dependent environment and communicates the data to the first object so as to provide bi-directional communication between the first object and the second object and to notify the first object of events generated by the second object.