leogtzr
c6d0d28557
Reverting initialization on demand holder idiom.
2017-01-22 11:06:57 -07:00
leogtzr
20b1c2bd49
Adding initialization on demand holder idiom.
2016-12-24 00:49:46 -07:00
Ilkka Seppälä
faa29f8025
Update license headers
2016-11-27 14:34:20 +02:00
daniel-bryla
0438811489
#502 Replaced usages of System.out with logger.
2016-10-23 19:59:03 +02:00
Alexandru Somai
095adda7e9
Change access level to private
2016-08-26 12:54:20 +03:00
Alexandru Somai
f16ae08bdf
Remove extra space
2016-08-26 12:46:30 +03:00
Narendra Pathai
d484e7f731
Documented singleton double check idiom, explaining the dynamics that happen on each step for better understanding. Did this due to a PR #475
2016-08-05 14:38:25 +05:30
Sumit Yadav
94c3a2caf3
removed extra "is" from the javadoc of InitializingOnDemandHolderIdiom class
2016-08-03 15:02:46 +05:30
Ilkka Seppälä
2ed3748c9b
Improve Singleton holder example
2016-05-07 11:38:55 +03:00
Narendra Pathai
dfef28e93e
Merge pull request #384 from DevFactory/release/Redundant-Field-Initializer-fix-1
...
pmd:RedundantFieldInitializer - Redundant-Field-Initializer
2016-02-18 12:39:06 +05:30
Mohammed Ezzat
0003c6cb00
pmd:RedundantFieldInitializer - Redundant-Field-Initializer
2016-02-18 08:40:19 +02:00
Mohammed Ezzat
632174b6dc
squid:S2974 - Classes without public constructors should be final
2016-02-09 17:19:31 +02:00
Joseph McCarthy
3d95696078
#358 Added license to all files using plugin
2016-01-27 22:20:42 +00:00
Ilkka Seppala
cec9a99410
Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.
2015-12-25 23:49:28 +02:00
Ankur Kaushal
306b1f3d31
Reformat rest of the design patterns - Issue #224
2015-11-01 21:29:13 -05:00
Richard Jones
5d970438bf
Update comment
2015-10-12 05:22:09 -03:00
Ilkka Seppala
6413c4d2be
Added more Singleton documentation #188
2015-10-02 22:53:41 +03:00
zafarella
60f9b71278
eliminate all warnings of checkstyle.
2015-09-24 13:29:39 -04:00
zafarella
36809537d9
checkstyle fixes - docs, indent etc
2015-09-24 01:01:51 -04:00
Ilkka Seppala
4bf2e3f16d
#107 JavaDoc for Singleton
2015-08-21 23:09:51 +03:00
Ilkka Seppala
8524c75ba6
Changed package naming across all examples.
2015-05-31 11:55:18 +03:00
mbirkenkamp
649b14adf6
Update App.java
...
additional explanation about the risks of using the singleton pattern, as requested by @iluwatar
2015-03-14 16:59:02 +01:00
mbirkenkamp
fe625c45be
Update App.java
...
it is important to note that the singleton pattern is inherently unsafe for distributed environments, since the initialization state is not mirrored across different instances of the java vm
2015-03-14 13:48:02 +01:00
Ilkka Seppala
5646937d52
Merge branch 'master' of https://github.com/mortezaadi/java-design-patterns into mortezaadi-master
...
Conflicts:
singleton/src/main/java/com/iluwatar/App.java
2014-12-05 22:58:09 +02:00
mortezaadi
c06c05757e
add some references to class comments
2014-12-05 11:59:41 +03:30
mortezaadi
dbc1ca7aeb
Add DCL and Initializing on demand holder idiom.
2014-12-05 00:02:50 +03:30
Ilkka Seppala
470f3d2460
Added comments to singleton app.
2014-11-26 22:47:44 +02:00
Ilkka Seppala
34bc1de713
Added comments to lazily initialized singleton implementation.
2014-11-26 22:45:47 +02:00
Ilkka Seppala
0ad5fbfc5c
Added comment to eagerly initialized singleton implementation.
2014-11-26 22:43:08 +02:00
Ilkka Seppala
baf177a81e
Added book reference to singleton enum implementation.
2014-11-26 22:41:44 +02:00
alwayswithme
11a89f85a8
move the SO question URL
2014-11-26 09:15:40 +08:00
alwayswithme
16ac983053
change comment
2014-11-25 16:24:32 +08:00
alwayswithme
3f2cb22478
remove the getInstance method
2014-11-25 16:10:17 +08:00
alwayswithme
406d2e7081
simplified the println
2014-11-24 18:01:44 +08:00
yejinchang
13abf49024
enum approach of singleton
2014-11-24 17:35:52 +08:00
Ilkka Seppala
862fd39d11
#12 Added private constructor to ThreadSafeLazyLoadedIvoryTower.
2014-11-05 21:28:48 +02:00
Sujan Reddy Annem
5687976a91
Thread-safe Singleton class
...
New Singleton class name has renamed to ThreadSafeLazyLoadedIvoryTower
and called it from App.java
2014-10-13 22:15:45 -07:00
Sujan Reddy Annem
cffe592c9c
New Singleton class
...
Thread-safe and lazy loading.
2014-10-13 13:24:18 -07:00
matthew
3da9ad5469
Formatted all files to the same standard
2014-10-08 13:42:12 +01:00
Matthew
bde5b343d0
Just formatting App classes to be like the other class files on the project
2014-10-07 16:23:37 +01:00
yusufaytas
d6aed142a7
removed the lazy instantiation from singleton to avoid threading
...
problems.
2014-09-07 21:21:24 +01:00
Yusuf Aytaş
3d55749042
Update IvoryTower.java
...
fixed the issue with class creation.
2014-09-07 00:44:32 +01:00
Yusuf Aytaş
0509e48d37
Update IvoryTower.java
2014-09-06 23:54:25 +01:00
Ilkka Seppala
54b414acb1
Commented singleton example.
2014-08-31 08:42:01 +03:00
Ilkka Seppala
72415386fe
added singleton sample
2014-08-11 21:43:08 +03:00