Methods and apparatus for dynamic class reloading and versioning
Abstract
Methods and apparatus for dynamic class reloading and versioning that allow developers to change and recompile classes and to have running programs adopt the new versions of the classes dynamically, without redeploying the application. A dynamic class reloading component detects if the environment supports dynamic class redefinition and uses it if supported but does not require it. As the component loads a managed class, it modifies the bytecode of the class and generates additional classes and interfaces to support type-safe class versioning. Unique names are generated for successive versions of a managed class. A separate interface may be generated for each distinct method name and signature implemented on managed classes. Each generated class may implement all the generated interfaces that correspond to its methods. The same class loader that would load each managed class without the component loads the component-generated classes and interfaces.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 11.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system, comprising: at least one processor; and a memory storing program instructions executable by the at least one processor to implement a dynamic class reloading component configured to: determine that a currently loaded version of a class in a running application is not current with a class definition of the class in a class file, wherein the class definition specifies a new version of the class; and in response to said determine: generate a new version of a body class for the class and a new version of a static body class for the class using bytecode from the class file, wherein the ne
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (11 of 11 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (3)
- "The JavaRebel software is mentioned in the disclosure (section B)," Zeroturnaround, Copyright Webmedia, Ltd, 2007-2009, 12 pages.
- Bea, "WebLogic Server Application Classloading," 2009 Bea Systems.
- Stephan Schmidt, "JavaRebel impressions-Java Reload just like in Rails," Oct. 11, 2007, 3 pages.