This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes Instantaiting a class in Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Instantaiting a class in Listener" Watch "Instantaiting a class in Listener" New topic
Author

Instantaiting a class in Listener

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
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

Joined: Jan 10, 2002
Posts: 63052
    
  69

What is Resource, and why is it being subtracted from the result of the loader() method? What is the loader() method?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
Hi Bear Bibeault

their is a typo mistake its been changed
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Instantaiting a class in Listener
 
It's not a secret anymore!