Merge branch 'master' of https://github.com/iluwatar/java-design-patterns into Promise
This commit is contained in:
commit
4bd1f14cfb
@ -8,6 +8,7 @@ tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- Functional
|
||||
- Reactive
|
||||
---
|
||||
|
||||
## Intent
|
||||
|
@ -8,6 +8,7 @@ tags:
|
||||
- Java
|
||||
- Gang Of Four
|
||||
- Difficulty-Intermediate
|
||||
- Functional
|
||||
---
|
||||
|
||||
## Also known as
|
||||
|
@ -7,6 +7,7 @@ categories: Structural
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Beginner
|
||||
- Reactive
|
||||
---
|
||||
|
||||
## Intent
|
||||
|
@ -1,7 +1,14 @@
|
||||
---
|
||||
layout: pattern
|
||||
title: Event Driven Architecture
|
||||
folder: event-driven-architecture
|
||||
permalink: /patterns/event-driven-architecture
|
||||
permalink: /patterns/event-driven-architecture/
|
||||
categories: Architectural
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- Reactive
|
||||
---
|
||||
|
||||
## Intent
|
||||
Send and notify state changes of your objects to other applications using an Event-driven Architecture.
|
||||
|
@ -6,7 +6,7 @@ permalink: /patterns/monad/
|
||||
categories: Other
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Advanced
|
||||
- Difficulty-Expert
|
||||
- Functional
|
||||
---
|
||||
|
||||
|
@ -11,7 +11,7 @@ tags:
|
||||
---
|
||||
|
||||
## Intent
|
||||
Provide a template to supress any exceptions that either are declared but cannot occur or should only be logged;
|
||||
Provide a template to suppress any exceptions that either are declared but cannot occur or should only be logged;
|
||||
while executing some business logic. The template removes the need to write repeated `try-catch` blocks.
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ while executing some business logic. The template removes the need to write repe
|
||||
## Applicability
|
||||
Use this idiom when
|
||||
|
||||
* an API declares some exception but can never throw that exception. Eg. ByteArrayOutputStream bulk write method.
|
||||
* an API declares some exception but can never throw that exception eg. ByteArrayOutputStream bulk write method.
|
||||
* you need to suppress some exception just by logging it, such as closing a resource.
|
||||
|
||||
## Credits
|
||||
|
@ -3,10 +3,10 @@ layout: pattern
|
||||
title: Mutex
|
||||
folder: mutex
|
||||
permalink: /patterns/mutex/
|
||||
categories: Lock
|
||||
categories: Concurrency
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Beginner
|
||||
- Difficulty-Intermediate
|
||||
---
|
||||
|
||||
## Also known as
|
||||
|
@ -8,6 +8,7 @@ tags:
|
||||
- Java
|
||||
- Difficulty-Beginner
|
||||
- Gang Of Four
|
||||
- Reactive
|
||||
---
|
||||
|
||||
## Also known as
|
||||
|
@ -7,9 +7,6 @@ categories: Testing
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- Testing
|
||||
- Web Development
|
||||
- Encapsulation
|
||||
---
|
||||
|
||||
## Intent
|
||||
|
@ -7,6 +7,7 @@ categories: Other
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- Reactive
|
||||
---
|
||||
|
||||
## Intent
|
||||
|
@ -8,6 +8,7 @@ tags:
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- I/O
|
||||
- Reactive
|
||||
---
|
||||
|
||||
## Intent
|
||||
|
@ -3,9 +3,12 @@ layout: pattern
|
||||
title: Reader Writer Lock
|
||||
folder: reader-writer-lock
|
||||
permalink: /patterns/reader-writer-lock/
|
||||
categories: Concurrent
|
||||
categories: Concurrency
|
||||
tags:
|
||||
- Java
|
||||
- Java
|
||||
- Difficulty-Intermediate
|
||||
- I/O
|
||||
- Performance
|
||||
---
|
||||
|
||||
**Intent:**
|
||||
|
@ -3,10 +3,10 @@ layout: pattern
|
||||
title: Semaphore
|
||||
folder: semaphore
|
||||
permalink: /patterns/semaphore/
|
||||
categories: Lock
|
||||
categories: Concurrency
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Beginner
|
||||
- Difficulty-Intermediate
|
||||
---
|
||||
|
||||
## Also known as
|
||||
|
@ -26,6 +26,10 @@ Use the Specification pattern when
|
||||
* you need to select a subset of objects based on some criteria, and to refresh the selection at various times
|
||||
* you need to check that only suitable objects are used for a certain role (validation)
|
||||
|
||||
## Related patterns
|
||||
|
||||
* Repository
|
||||
|
||||
## Credits
|
||||
|
||||
* [Martin Fowler - Specifications](http://martinfowler.com/apsupp/spec.pdf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user