868 Commits

Author SHA1 Message Date
waisuan
9891c2e17b Issue #273:Caching Patterns [new pattern] 2015-10-28 23:55:47 +08:00
Ilkka Seppälä
a869294851 Merge pull request #257 from mafagafogigante/readme-warning-for-beginners
A Warning for beginners in the Readme.
2015-10-25 08:47:49 +02:00
Ilkka Seppälä
a2b8359ab5 Merge pull request #269 from iamrichardjones/master
Add unit test to callback method
2015-10-20 23:37:39 +03:00
Richard Jones
21a4d7b4c9 Add unit test to show that the callback method is called. 2015-10-19 22:07:00 +01:00
Richard Jones
83c2fbdcd3 Add unit test to show that the callback method is called. 2015-10-19 22:06:35 +01:00
Ilkka Seppälä
8eff279233 Merge pull request #263 from iamrichardjones/master
Update to singleton unit tests and lazy loading unit test
2015-10-19 21:21:45 +03:00
Ilkka Seppälä
b961c57919 Merge pull request #268 from iluwatar/themoffster-master
Themoffster master - unit test improvements
2015-10-19 21:14:58 +03:00
Ilkka Seppala
b028f66b08 Removed properties 2015-10-19 21:01:41 +03:00
Ilkka Seppala
339db2a0bf Merge branch 'master' of https://github.com/themoffster/java-design-patterns into themoffster-master
Conflicts:
	dao/pom.xml
2015-10-19 20:44:46 +03:00
Ilkka Seppälä
9cbc4a20b9 Merge pull request #265 from mkobit/double-checked-locking-executor-service-shutdown
Fix - Shutdown the ExecutorService in App so that the resources are c…
2015-10-14 20:10:46 +03:00
Mike Kobit
07a77ba11d Fix - Shutdown the ExecutorService in App so that the resources are collected and the process can finish
I ran App.main(String[] args) in the 'double-checked-locking' module and the process does not terminate. This is because the executor service still has open threads. I'm not sure how the JUnit tests are run, but it seems they are handling the leftover resources themselves.

Also, minor modifications to Inventory for final fields are used since there is no state change around them, and added some more meaningful printing so the example is more clearly demonstrated
2015-10-14 07:01:15 -05:00
Bernardo Sulzbach
e09dda6037 A Warning for beginners in the Readme. 2015-10-14 06:41:32 -03:00
Richard Jones
7ab799c452 Synchronise the list as multiple threads are calling it 2015-10-13 21:23:32 -03:00
Ilkka Seppälä
3c8b83748a Merge pull request #258 from amit2103/master
MonoState Pattern
2015-10-13 20:03:45 +03:00
Richard Jones
5d970438bf Update comment 2015-10-12 05:22:09 -03:00
Richard Jones
0d068a35d8 Update comment 2015-10-12 05:21:33 -03:00
Richard Jones
64e3e1a9e8 For some reason it thinks there are two fields in the CI build. Making this more generic 2015-10-11 22:16:51 -03:00
Richard Jones
31e2940eb1 Remove error unit test so pull request can proceed. Will check this at at later date 2015-10-11 22:11:03 -03:00
Richard Jones
0107b24976 Fix unit test by makinig getField use the field name directly 2015-10-11 22:06:00 -03:00
Richard Jones
7cf5b32086 Add additional unit tests to show how lazy loading is working with reflection 2015-10-11 21:58:13 -03:00
Richard Jones
45b0ac386e 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 using reflection
Add some logging. Tests pass locally but not on github?
2015-10-11 21:54:45 -03:00
Richard Jones
6ba7f5ea04 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 using reflection 2015-10-11 21:32:51 -03:00
amit2103
271ce09e26 Fixed POMS 2015-10-09 23:26:10 +05:30
amit2103
9d0673af0a Made changes according to feedback issue #258 2015-10-09 23:23:34 +05:30
amit2103
eb22febdfc Printing Server variables 2015-10-09 23:23:34 +05:30
amit2103
9a824c7d21 MonoState #85 2015-10-09 23:23:34 +05:30
amit2103
81b5bc99ce Update Pom.xml
Fixed Reference to Parent POM
2015-10-08 09:43:19 +05:30
amit2103
19f5966cb9 Added Comments and Feedback 2015-10-07 20:37:45 +05:30
amit2103
1e988c10f9 fixed merge conflict 2015-10-07 20:10:36 +05:30
amit2103
2c45f73254 MonoState #85 2015-10-04 03:12:51 +05:30
amit2103
c8fd9f3a0d Monostate pattern #85 2015-10-04 03:06:11 +05:30
Ilkka Seppala
0a9879a277 Improve Strategy Javadoc 2015-10-04 00:22:27 +03:00
Ilkka Seppala
2234a25c76 Improve State Javadoc 2015-10-04 00:19:34 +03:00
Ilkka Seppala
74e32259be Improve Service Locator Javadoc 2015-10-04 00:16:05 +03:00
Ilkka Seppala
8db2bb2ac8 Improve Servant Javadoc 2015-10-04 00:13:08 +03:00
Ilkka Seppala
c3a827b475 Improved Proxy Javadoc 2015-10-04 00:08:34 +03:00
Ilkka Seppala
9a4f83e7b8 Improve Prototype Javadoc 2015-10-04 00:04:12 +03:00
Ilkka Seppala
40e378c1f3 Improve Property Javadoc 2015-10-03 23:57:17 +03:00
Ilkka Seppala
98aa28d94e Improve Poison Pill Javadoc 2015-10-03 23:53:09 +03:00
Ilkka Seppala
4d1aae21f7 Improve Observer Javadoc 2015-10-03 23:48:51 +03:00
Ilkka Seppala
ca6bb7a3a8 Improve Memento Javadoc 2015-10-03 23:38:37 +03:00
Ilkka Seppala
fc66ae8084 Improve Mediator Javadoc 2015-10-03 23:34:20 +03:00
Ilkka Seppala
e4ff39e080 Improve Iterator Javadoc 2015-10-03 21:37:29 +03:00
Ilkka Seppala
44d7be9c94 Improve Interpreter Javadoc 2015-10-03 21:32:56 +03:00
Ilkka Seppala
b4118bb866 Improve Intercepting Filter Javadoc 2015-10-03 21:28:17 +03:00
Ilkka Seppala
c27291fd27 Improve Fluent Interface Javadoc 2015-10-03 21:17:56 +03:00
Ilkka Seppala
c989f6cb21 Improve Factory Method Javadoc 2015-10-03 21:14:40 +03:00
Ilkka Seppala
516b127d21 Improved Facade Javadoc 2015-10-03 21:11:19 +03:00
Ilkka Seppala
584a22238d Improve Event Aggregator Javadoc 2015-10-03 21:06:52 +03:00
Ilkka Seppala
e32b440a38 Improve Double Checked Locking Javadoc 2015-10-03 21:00:21 +03:00