Skip to content

Commit e136e6a

Browse files
committed
Corrected merge error where CyclicBarrier example had moved under
Intercepting Filter. Should be under Callback.
1 parent 968fb1d commit e136e6a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ Presentation Tier patterns are the top-most level of the application, this is co
437437
**Applicability:** Use the Callback pattern when
438438
* When some arbitrary synchronous or asynchronous action must be performed after execution of some defined activity.
439439

440+
**Real world examples:**
441+
* [CyclicBarrier] (http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CyclicBarrier.html#CyclicBarrier%28int,%20java.lang.Runnable%29) constructor can accept callback that will be triggered every time when barrier is tripped.
440442

441443
## <a name="intercepting-filter">Intercepting Filter</a> [&#8593;](#list-of-design-patterns)
442444
**Intent:** Provide pluggable filters to conduct necessary pre-processing and post-processing to requests from a client to a target
@@ -448,9 +450,6 @@ Presentation Tier patterns are the top-most level of the application, this is co
448450
* a system should do the authentication/ authorization/ logging or tracking of request and then pass the requests to corresponding handlers
449451
* you want a modular approach to configuring pre-processing and post-processing schemes
450452

451-
**Real world examples:**
452-
* [CyclicBarrier] (http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CyclicBarrier.html#CyclicBarrier%28int,%20java.lang.Runnable%29) constructor can accept callback that will be triggered every time when barrier is tripped.
453-
454453
## <a name="execute-around">Execute Around</a> [&#8593;](#list-of-design-patterns)
455454
**Intent:** Execute Around idiom frees the user from certain actions that should always be executed before and after the business method. A good example of this is resource allocation and deallocation leaving the user to specify only what to do with the resource.
456455

0 commit comments

Comments
 (0)