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
Issue781
User selector
All users
All time
Commit history
Commits on Feb 19, 2018
Improve Javadoc
baislsl
committed
991ba32
View commit details
Copy full SHA for 991ba32
View code at this point
Browse repository at this point
Commits on Feb 17, 2018
Merge pull request #609 from igorcadelima/master
Show description for f9f9369
iluwatar
authored
f9f9369
View commit details
Copy full SHA for f9f9369
View code at this point
Browse repository at this point
Commits on Jan 23, 2018
Update EnumIvoryTower.java
zafarella
authored
dddfb52
View commit details
Copy full SHA for dddfb52
View code at this point
Browse repository at this point
Commits on Dec 31, 2017
Migrate to JUnit5
amogozov
committed
6694d74
View commit details
Copy full SHA for 6694d74
View code at this point
Browse repository at this point
Commits on Aug 12, 2017
Protect against instantiation via reflection
Show description for 3c6f7aa
igorcadelima
committed
3c6f7aa
View commit details
Copy full SHA for 3c6f7aa
View code at this point
Browse repository at this point
Commits on May 25, 2017
Updated ThreadSafeLazyLoadedivoryTower
Show description for 24f2588
shaiktaj
authored
24f2588
View commit details
Copy full SHA for 24f2588
View code at this point
Browse repository at this point
Commits on Mar 21, 2017
Removed AvoidStarImport Rule
Show description for 09585c3
muditporwal
committed
09585c3
View commit details
Copy full SHA for 09585c3
View code at this point
Browse repository at this point
Commits on Jan 22, 2017
Reverting initialization on demand holder idiom.
leogtzr
committed
c6d0d28
View commit details
Copy full SHA for c6d0d28
View code at this point
Browse repository at this point
Commits on Dec 24, 2016
Adding initialization on demand holder idiom.
leogtzr
committed
20b1c2b
View commit details
Copy full SHA for 20b1c2b
View code at this point
Browse repository at this point
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
Previous
Next
You can’t perform that action at this time.