Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd78434f

Browse files
authored
Merge pull requestiluwatar#644 from spanhal1/master
added tutorial links to bridge, decorator, abstract-factory, strategy…
2 parentsf9f9369 +5cbf651 commitd78434f

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

‎abstract-factory/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,15 @@ Use the Abstract Factory pattern when
179179

180180
*Dependency injection in java hides the service class dependencies that can lead to runtime errors that would have been caught at compile time.
181181

182+
183+
##Tutorial
184+
*[Abstract Factory Pattern Tutorial](https://www.journaldev.com/1418/abstract-factory-design-pattern-in-java)
185+
182186
##Presentations
183187

184188
*[Abstract Factory Pattern](etc/presentation.html)
185189

190+
186191
##Real world examples
187192

188193
*[javax.xml.parsers.DocumentBuilderFactory](http://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/DocumentBuilderFactory.html)

‎bridge/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ Use the Bridge pattern when
188188
* you have a proliferation of classes. Such a class hierarchy indicates the need for splitting an object into two parts. Rumbaugh uses the term "nested generalizations" to refer to such class hierarchies
189189
* you want to share an implementation among multiple objects (perhaps using reference counting), and this fact should be hidden from the client. A simple example is Coplien's String class, in which multiple objects can share the same string representation.
190190

191+
##Tutorial
192+
*[Bridge Pattern Tutorial](https://www.journaldev.com/1491/bridge-design-pattern-java)
193+
191194
##Credits
192195

193196
*[Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)

‎decorator/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ Use Decorator
116116
* For responsibilities that can be withdrawn
117117
* 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
118118

119+
##Tutorial
120+
*[Decorator Pattern Tutorial](https://www.journaldev.com/1540/decorator-design-pattern-in-java-example)
121+
119122
##Real world examples
120123
*[java.io.InputStream](http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html),[java.io.OutputStream](http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html),
121124
[java.io.Reader](http://docs.oracle.com/javase/8/docs/api/java/io/Reader.html) and[java.io.Writer](http://docs.oracle.com/javase/8/docs/api/java/io/Writer.html)

‎strategy/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Use the Strategy pattern when
2828
* an algorithm uses data that clients shouldn't know about. Use the Strategy pattern to avoid exposing complex, algorithm-specific data structures
2929
* a class defines many behaviors, and these appear as multiple conditional statements in its operations. Instead of many conditionals, move related conditional branches into their own Strategy class
3030

31+
##Tutorial
32+
*[Strategy Pattern Tutorial](https://www.journaldev.com/1754/strategy-design-pattern-in-java-example-tutorial)
33+
3134
##Credits
3235

3336
*[Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)

‎template-method/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ The Template Method pattern should be used
2424
* when common behavior among subclasses should be factored and localized in a common class to avoid code duplication. This is good example of "refactoring to generalize" as described by Opdyke and Johnson. You first identify the differences in the existing code and then separate the differences into new operations. Finally, you replace the differing code with a template method that calls one of these new operations
2525
* to control subclasses extensions. You can define a template method that calls "hook" operations at specific points, thereby permitting extensions only at those points
2626

27+
##Tutorial
28+
*[Template-method Pattern Tutorial](https://www.journaldev.com/1763/template-method-design-pattern-in-java)
29+
2730
##Credits
2831

2932
*[Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp