Comments on: Enforcing Java Singletons is Very Hard https://speedment.com/enforcing-java-singletons-is-very-hard/ Build Fast Java Applications for the Fastest Business Performance Fri, 01 May 2020 05:21:37 +0000 hourly 1 https://wordpress.org/?v=5.1.1 By: subham kumar https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-2 Mon, 13 Apr 2020 13:53:52 +0000 https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-2 Well explained . Great article on singleton pattern . There is also good singleton pattern example visit Singleton class example

]]>
By: Tell Me How https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-60 Fri, 02 Nov 2018 12:51:45 +0000 https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-60 Really nice article and well explained. But this is for single threaded applications. So what about multiple thread application. I found a really great explanation and solution there.

]]>
By: Mark Bednarczyk https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-165 Mon, 21 Sep 2015 19:44:31 +0000 https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-165 Hi Miniborg,
You may find this implementation of singleton interesting. Using a classloader we can lock singleton's a bit more. I posted the code on my website:

http://jnetpcap.com/?q=node/1328

]]>
By: Per Minborg https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-166 Fri, 18 Sep 2015 16:24:45 +0000 https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-166 I agree with you. You should not use singletons. Perhaps I will write an article about other lifecycle schemes in the futute.

]]>
By: Unknown https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-167 Fri, 18 Sep 2015 13:51:41 +0000 https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-167 but why would you want to? I prefer my lifecycle management to remain squarely the domain of something that specializes in it, like a dependency injection container.

]]>
By: Unknown https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-170 Fri, 26 Jun 2015 20:43:44 +0000 https://speedment.com/enforcing-java-singletons-is-very-hard/#comment-170 I develop a match making website clone in java platform and i am stuck over in some problem . So i need a suggestion of java clone.

]]>