aspose file tools*
The moose likes Beginning Java and the fly likes ClassLoader is Singleton ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ClassLoader is Singleton ?" Watch "ClassLoader is Singleton ?" New topic
Author

ClassLoader is Singleton ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
In Java API, which class is singleton Class ? ClassLoader is Singleton ?

Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18166
    
    8

Edward Chen wrote:In Java API, which class is singleton Class ? ClassLoader is Singleton ?


Nope. Check the API documentation and you'll see it has constructors. A class which is meant to be a singleton can only have private constructors -- you can see why that is, right?
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Paul Clapham wrote:
Nope. Check the API documentation and you'll see it has constructors. A class which is meant to be a singleton can only have private constructors -- you can see why that is, right?


yes, right. then in Java API, which class is singleton Class ? None ?
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
Edward:

There are thousands of classes just in the regular Java API. I think you'll have to do that search yourself.

John.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
You can try Runtime. That might be a singleton.



But why does anybody need to know?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassLoader is Singleton ?
 
Similar Threads
Some basic questions
Basic Questions
Regarding Singleton
Scope of Singleton
ClassLoaders