Initializing virtual machine that subsequently executes application
First Claim
1. A computer-readable medium comprising instructions, which, when executed by a processor, cause the processor to perform a method of initializing a virtual machine for rendering an object on a computer display, the method comprising:
- providing an application;
receiving a property value corresponding to an application format;
identifying a plurality of variables from a byte-code of the application;
reading a plurality of object representations for at least some of the plurality of variables from a markup language document;
selecting an object representation from the markup language document according to the application format specified in the property value, wherein the object representation is selected from the plurality of object representations with same meanings and different formats; and
assigning the object representation from the markup language document to a variable in the application by assigning the object representation in the markup language document to the variable in the application;
re-initializing the virtual machine upon a modification of the markup language document, the re-initializing comprising;
identifying a new object representation from the modified markup language document according to the application format specified in the property value;
identifying the variable for the new object representation by parsing the application; and
re-initializing the variable based on the new object representation.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and a system for selecting a desired language for text displays in a Java-Type language is provided. A localization class in the loadable Java program defines the text portions of the displays. At start of the application, the Java virtual machine loads this class and a determination is made, by user input or otherwise, of which of a group of languages available should be used for the text. Based on the determination, the static initializer Java-type code is invoked, and it loads the appropriate language text from a markup language document, preferably an XML document. The appropriate text segments from the markup language document are then used to initialize the variables. The application then can proceed to run as usual. Preferably, after the static initialization, the fields of the localization class are checked to confirm that all fields contain text.
-
Citations
12 Claims
-
1. A computer-readable medium comprising instructions, which, when executed by a processor, cause the processor to perform a method of initializing a virtual machine for rendering an object on a computer display, the method comprising:
-
providing an application; receiving a property value corresponding to an application format; identifying a plurality of variables from a byte-code of the application; reading a plurality of object representations for at least some of the plurality of variables from a markup language document; selecting an object representation from the markup language document according to the application format specified in the property value, wherein the object representation is selected from the plurality of object representations with same meanings and different formats; and assigning the object representation from the markup language document to a variable in the application by assigning the object representation in the markup language document to the variable in the application; re-initializing the virtual machine upon a modification of the markup language document, the re-initializing comprising; identifying a new object representation from the modified markup language document according to the application format specified in the property value; identifying the variable for the new object representation by parsing the application; and re-initializing the variable based on the new object representation. - View Dependent Claims (2, 3, 4, 5, 10)
-
-
6. A method for initializing a virtual machine (VM) for rendering an object on a display of a computer, the method comprising:
-
providing an application; receiving a property value corresponding to an application format; identifying a plurality of variables from a byte-code of the application; reading a plurality of object representations for at least some of the plurality of variables from a markup language document; selecting an object representation from the markup language document according to the application format specified in the property value, wherein the object representation is selected from the plurality of object representations with same meanings and different formats; and assigning the object representation from the markup language document to a variable in the application by assigning the object representation in the markup language document to the variable in the application; re-initializing the virtual machine upon a modification of the markup language document, the re-initializing comprising; identifying a new object representation from the modified markup language document according to the application format specified in the property value; identifying the variable for the new object representation by parsing the application; and re-initializing the variable based on the new object representation. - View Dependent Claims (7, 11)
-
-
8. A computer system that initializes a virtual machine (VM) for rendering an object on a display of a computer, the computer system comprising:
-
a processor; a computer memory device configured to store an application; a property value selector configured to receive a property value corresponding to an application format; a reader executing on the processor, the reader configured to; identify a plurality of variables from a byte-code of the application, read a plurality of object representations for at least some of the plurality of variables from a markup language document, select an object representation from the markup language document according to the application format specified in the property value, wherein the object representation is selected from the plurality of object representations with same meanings and different formats, and assign the object representation from the markup language document to a variable in the application, by assigning the object representation in the markup language document to the variable in the application; and means for re-initializing the virtual machine upon a modification of the markup language document the means for re-initializing further comprising; means for identifying a new object representation from the modified markup language document according to the application format specified in the property value; means for identifying the variable for the new object representation by parsing the application; and means for re-initializing the variable based on the new object representation. - View Dependent Claims (9, 12)
-
Specification