发明名称 Serialization of pre-initialized objects
摘要 An illustrative embodiment for serialization of pre-initialized objects receives a source code definition of a class, identifies a set of constants associated with the class in the source code to form a set of identified constants, creates a result object corresponding to each constant in the set of identified constants, and compiles the source code into a compiled form of the class. The illustrative embodiment further serializes each result object into a resource file associated with the class to form a set of serialized objects and replaces, in the compiled form of the class, each reference to a respective constant associated with the class from the set of identified constants with a corresponding dynamic instruction using a respective serialized object in the set of serialized objects.
申请公布号 US9092237(B2) 申请公布日期 2015.07.28
申请号 US201213589855 申请日期 2012.08.20
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Burka Peter W.;Heidinga Daniel J.;Taylor Karl M.;Thomann Olivier P.
分类号 G06F9/45;G06F9/44 主分类号 G06F9/45
代理机构 代理人 Doubet Marcia L.
主权项 1. A computer-implemented process for serialization of pre-initialized objects, the computer-implemented process comprising: receiving a source code definition of a class; programmatically evaluating the received source code definition to identify therein each of a plurality of constants associated with the class in the source code; creating a result object corresponding to each of the plurality of identified constants, each result object representing a value of the corresponding identified constant; compiling the source code into a compiled form of the class; serializing each result object into a resource file associated with the class, thereby forming a set of serialized objects; and replacing, in the compiled form of the class, each reference to any of the plurality of identified constants with a corresponding dynamic instruction that, when executed at run-time, will dynamically provide the value of the identified constant, within the compiled form of the class, from the corresponding serialized object in the set of serialized objects.
地址 Armonk NY US