Click here to Skip to main content
16,011,447 members
Articles / Programming Languages / Java

How to make Singletons whose behaviour can be overridden with a Mock object

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
1 Mar 2010GPL31 min read 31.3K   75   4  
How to make Singletons whose behaviour can be overridden and that allows mock objects.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior)
India India
Specialization in Java/J2EE/JSF/Richfaces/Spring/Spring Integration
Area of interest: Refactoring with design patterns.
Currently working on Spring Integration and ActiveMQ.

Comments and Discussions