Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
xiaogithubcode
/
java-design-patterns
Public
forked from
iluwatar/java-design-patterns
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commits
Breadcrumbs
History for
java-design-patterns
singleton
src
on
proxy-presentation
User selector
All users
All time
Commit history
Commits on Nov 27, 2016
Update license headers
iseppala
committed
faa29f8
View commit details
Copy full SHA for faa29f8
View code at this point
Browse repository at this point
Commits on Oct 23, 2016
#502 Replaced usages of System.out with logger.
daniel-bryla
committed
0438811
View commit details
Copy full SHA for 0438811
View code at this point
Browse repository at this point
Commits on Aug 26, 2016
Change access level to private
alexsomai
authored
095adda
View commit details
Copy full SHA for 095adda
View code at this point
Browse repository at this point
Remove extra space
alexsomai
authored
f16ae08
View commit details
Copy full SHA for f16ae08
View code at this point
Browse repository at this point
Commits on Aug 5, 2016
Documented singleton double check idiom, explaining the dynamics that happen on each step for better understanding. Did this due to a PR #475
npathai
committed
d484e7f
View commit details
Copy full SHA for d484e7f
View code at this point
Browse repository at this point
Commits on Aug 3, 2016
removed extra "is" from the javadoc of InitializingOnDemandHolderIdiom class
sumityadav6541
committed
94c3a2c
View commit details
Copy full SHA for 94c3a2c
View code at this point
Browse repository at this point
Commits on May 7, 2016
Improve Singleton holder example
iseppala
committed
2ed3748
View commit details
Copy full SHA for 2ed3748
View code at this point
Browse repository at this point
Commits on Feb 18, 2016
Merge pull request #384 from DevFactory/release/Redundant-Field-Initializer-fix-1
Show description for dfef28e
npathai
committed
dfef28e
View commit details
Copy full SHA for dfef28e
View code at this point
Browse repository at this point
pmd:RedundantFieldInitializer - Redundant-Field-Initializer
Mohammed Ezzat
committed
0003c6c
View commit details
Copy full SHA for 0003c6c
View code at this point
Browse repository at this point
Commits on Feb 9, 2016
squid:S2974 - Classes without public constructors should be final
Mohammed Ezzat
committed
632174b
View commit details
Copy full SHA for 632174b
View code at this point
Browse repository at this point
Commits on Jan 27, 2016
#358 Added license to all files using plugin
mikulucky
committed
3d95696
View commit details
Copy full SHA for 3d95696
View code at this point
Browse repository at this point
Commits on Dec 30, 2015
Added tests for singleton pattern
fluxw42
committed
d0cdf84
View commit details
Copy full SHA for d0cdf84
View code at this point
Browse repository at this point
Commits on Dec 27, 2015
Fix PMD violations #327
iluwatar
committed
5f033be
View commit details
Copy full SHA for 5f033be
View code at this point
Browse repository at this point
Commits on Dec 25, 2015
Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
iluwatar
committed
cec9a99
View commit details
Copy full SHA for cec9a99
View code at this point
Browse repository at this point
Commits on Nov 2, 2015
Reformat rest of the design patterns - Issue #224
ankurkaushal
committed
306b1f3
View commit details
Copy full SHA for 306b1f3
View code at this point
Browse repository at this point
Commits on Oct 14, 2015
Synchronise the list as multiple threads are calling it
Richard Jones
committed
7ab799c
View commit details
Copy full SHA for 7ab799c
View code at this point
Browse repository at this point
Commits on Oct 12, 2015
Update comment
Richard Jones
committed
5d97043
View commit details
Copy full SHA for 5d97043
View code at this point
Browse repository at this point
Update comment
Richard Jones
committed
0d068a3
View commit details
Copy full SHA for 0d068a3
View code at this point
Browse repository at this point
Remove error unit test so pull request can proceed. Will check this at at later date
Richard Jones
committed
31e2940
View commit details
Copy full SHA for 31e2940
View code at this point
Browse repository at this point
Fix unit test by makinig getField use the field name directly
Richard Jones
committed
0107b24
View commit details
Copy full SHA for 0107b24
View code at this point
Browse repository at this point
Add additional unit tests to show that singletons can be created in single thread environment and multithread environment. Also add a test to demonstrate a whole with Singleton when instantiating u…
Show description for 45b0ac3
Richard Jones
committed
45b0ac3
View commit details
Copy full SHA for 45b0ac3
View code at this point
Browse repository at this point
Add additional unit tests to show that singletons can be created in single thread environment and multithread environment. Also add a test to demonstrate a whole with Singleton when instantiating u…
Show description for 6ba7f5e
Richard Jones
committed
6ba7f5e
View commit details
Copy full SHA for 6ba7f5e
View code at this point
Browse repository at this point
Commits on Oct 2, 2015
Added more Singleton documentation #188
iluwatar
committed
6413c4d
View commit details
Copy full SHA for 6413c4d
View code at this point
Browse repository at this point
Commits on Sep 24, 2015
eliminate all warnings of checkstyle.
zafarella
committed
60f9b71
View commit details
Copy full SHA for 60f9b71
View code at this point
Browse repository at this point
checkstyle fixes - docs, indent etc
zafarella
committed
3680953
View commit details
Copy full SHA for 3680953
View code at this point
Browse repository at this point
Commits on Aug 21, 2015
#107 JavaDoc for Singleton
iluwatar
committed
4bf2e3f
View commit details
Copy full SHA for 4bf2e3f
View code at this point
Browse repository at this point
Commits on Jul 9, 2015
#100 Added test case for demonstrating the thread safety issues of a
Show description for 96241f6
iluwatar
committed
96241f6
View commit details
Copy full SHA for 96241f6
View code at this point
Browse repository at this point
Commits on May 31, 2015
Changed package naming across all examples.
iluwatar
committed
8524c75
View commit details
Copy full SHA for 8524c75
View code at this point
Browse repository at this point
Commits on Mar 14, 2015
Update App.java
Show description for 649b14a
mbirkenkamp
committed
649b14a
View commit details
Copy full SHA for 649b14a
View code at this point
Browse repository at this point
Update App.java
Show description for fe625c4
mbirkenkamp
committed
fe625c4
View commit details
Copy full SHA for fe625c4
View code at this point
Browse repository at this point
Commits on Dec 6, 2014
Added unit tests for each of the patterns.
iluwatar
committed
6301e0b
View commit details
Copy full SHA for 6301e0b
View code at this point
Browse repository at this point
Commits on Dec 5, 2014
Merge branch 'master' of https://github.com/mortezaadi/java-design-patterns into mortezaadi-master
Show description for 5646937
iluwatar
committed
5646937
View commit details
Copy full SHA for 5646937
View code at this point
Browse repository at this point
add some references to class comments
mortezaadi
committed
c06c057
View commit details
Copy full SHA for c06c057
View code at this point
Browse repository at this point
Commits on Dec 4, 2014
Add DCL and Initializing on demand holder idiom.
mortezaadi
committed
dbc1ca7
View commit details
Copy full SHA for dbc1ca7
View code at this point
Browse repository at this point
Commits on Nov 26, 2014
Added comments to singleton app.
iluwatar
committed
470f3d2
View commit details
Copy full SHA for 470f3d2
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.