• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Instantaiting a class in Listener

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear Bibeault

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