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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Structural patterns are concerned with how classes and objects are composed to f
47
47
48
48
### Behavioral Patterns
49
49
50
-
Behavioral patterns are concerned with algorithms and the assignment of responsibilites between objects.
50
+
Behavioral patterns are concerned with algorithms and the assignment of responsibilities between objects.
51
51
52
52
*[Chain of responsibility](#chain-of-responsibility)
53
53
*[Command](#command)
@@ -228,7 +228,7 @@ A programming idiom is a means of expressing a recurring construct in one or mor
228
228
**Applicability:** Use Decorator
229
229
* to add responsibilities to individual objects dynamically and transparently, that is, without affecting other objects
230
230
* for responsibilities that can be withdrawn
231
-
* when extension by subclassing is impractical. Sometimes a large number of independent extensions are possible and would produce an explosion of sublasses to support every combination. Or a class definition may be hidden or otherwise unavailable for subclassing
231
+
* when extension by subclassing is impractical. Sometimes a large number of independent extensions are possible and would produce an explosion of subclasses to support every combination. Or a class definition may be hidden or otherwise unavailable for subclassing
**Intent:** Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
@@ -283,7 +283,7 @@ A programming idiom is a means of expressing a recurring construct in one or mor
**Applicability:** The service locator pattern is applicable whenever we want to locate/fetch various services using JNDI which, typically, is a redundant and expensive lookup. The service Locator pattern addresses this expensive lookup by making use of caching techniques ie. for the very first time a particular service is requested, the service Locator looks up in JNDI, fetched the relavant service and then finally caches this service object. Now, further lookups of the same service via Service Locator is done in its cache which improves the performance of application to great extent.
286
+
**Applicability:** The service locator pattern is applicable whenever we want to locate/fetch various services using JNDI which, typically, is a redundant and expensive lookup. The service Locator pattern addresses this expensive lookup by making use of caching techniques ie. for the very first time a particular service is requested, the service Locator looks up in JNDI, fetched the relevant service and then finally caches this service object. Now, further lookups of the same service via Service Locator is done in its cache which improves the performance of application to great extent.
287
287
288
288
**Typical Use Case:**
289
289
@@ -686,7 +686,7 @@ validation and for building to order
686
686
**Applicability:** Use the Front Controller pattern when
687
687
* you want to encapsulate common request handling functionality in single place
688
688
* you want to implements dynamic request handling i.e. change routing without modifying code
689
-
* make web server configution portable, you only need to register the handler web server specific way
689
+
* make web server configuration portable, you only need to register the handler web server specific way
690
690
691
691
**Real world examples:**
692
692
*[Apache Struts](https://struts.apache.org/)
@@ -711,7 +711,7 @@ validation and for building to order
0 commit comments