Several mechanisms for implementing Java class Dynamic Update

Source: Internet
Author: User

The dynamic loading of Java classes mainly involves the following aspects:

1. New classloading. The disadvantage is that the status of the class instance cannot be saved. 2. JVM ti. The underlying implementation of Java instrument is jvmti. It can be dynamically loaded after the JVM is started: classes can be modified, instrument is more suitable for monitoring and controlling the behavior of virtual machines (without changing the class, changing the class behavior and doing AOP at the JVM bottom layer ). 3. JDK proxy, cglib ---> encapsulates ASM (Java bytecode control framework. ASM is a Java bytecode generation architecture that can dynamically generate stub or other proxies in binary format, or before the class is loaded into the memory by the Java Virtual Machine, dynamically modify the class) ---- dynamic bytecode Generation 4, hotswap (jdk7)

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.