I’m writing a plugin to 3-rd party server application.
I’d like to know how usually java classloaders reload static classes?
Could anyone suggest a good doc that explains java classloading in details?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Static members of classes are not reloaded. (I assume you are not talking about static inner classes)
Instead static members are unloaded when a classloader is unloaded. When a new classloader is loaded (with the same or similar code) static members are lazy loaded.