Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instantaiting a class in Listener

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,

I am working in a maintenance project. I Just started debugging the code and start Learning. The code which i debug is as show below and it is ServletListener


I just press F5 to get inside the method of Validate(Iam using eclipse ). Suddenly the control goes to the class CompoundClassLoader(ClassLoader).loadClass(String) And after this the control goes to another class J9vmInternals.Initilize(class). And finally ends in a constructor of a class Named Resourceloader.

My question is How the method call validate(). is calling the constructor of the Resource-loader. I have also checked inside the validate method. their is no code below as Shown. But i would like to know how the constructor is called. I have checked their is No load-on-start up also configured, No static block initializar calling, is their any another way to instantiate a class

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Resource, and why is it being subtracted from the result of the loader() method? What is the loader() method?
 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault

their is a typo mistake its been changed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic