You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -437,6 +437,8 @@ Presentation Tier patterns are the top-most level of the application, this is co
437
437
**Applicability:** Use the Callback pattern when
438
438
* When some arbitrary synchronous or asynchronous action must be performed after execution of some defined activity.
439
439
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.
**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
448
450
* a system should do the authentication/ authorization/ logging or tracking of request and then pass the requests to corresponding handlers
449
451
* you want a modular approach to configuring pre-processing and post-processing schemes
450
452
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.
**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.
0 commit comments