aspose file tools*
The moose likes Java in General and the fly likes Duplicating a generic inner class to a singleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Duplicating a generic inner class to a singleton" Watch "Duplicating a generic inner class to a singleton" New topic
Author

Duplicating a generic inner class to a singleton

Vatsa dude
Greenhorn

Joined: Apr 29, 2009
Posts: 22
Hi,
I have a requirement to duplicate an inner class MyClass to a Singleton. I've attempted to do this by implementing MySingleton. I am not sure how to use the _instance in the get and put method of MyClass. Can you please advice?

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Duplicating a generic inner class to a singleton
 
Similar Threads
compile-time type checking
non-static reference in singleton
"POTENTIAL PROBLEM" in following prg ?
same key for diff values in HashMap
How to use Singleton Design pattern in a Clustered Environment?