GeeCON Prague 2014*
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


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: 236
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: 61310
    
  66

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: 236
Hi Bear Bibeault

their is a typo mistake its been changed
 
GeeCON Prague 2014
 
subject: Instantaiting a class in Listener