Skip to content

A simple design patterns example in a form of a java Maven project.

License

Notifications You must be signed in to change notification settings

ksiv/design-patterns-example-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

design-patterns-example-java

Maven project

Examples are in form of Junit 5 but they serve as usage examples not as tests.

content

(the most interesting go first )

  1. Singleton
  2. Strategy
  3. Factory
  4. Proxy
  5. Adapter
  6. Builder
  7. MVC
  8. State
  9. Observer
  10. Chain of Responsibility
  11. Decorator
  12. Template
  13. Composite
  14. Prototype
  15. Bridge

gist

The idea of these samples to provide an easy to understand example. By means of:
• keep samples as small as possible but still big enough to frame the core idea.
• the data domain is bound to everydays items, no movie/gender/hobby specific.
• code is ready to go, all you need are Java & Maven
• structured in a fancy package tree
• Overall code quality is not a goal. For example - there are lots of duplication. Pieces of code are not reused across the most examples to focus on only one idea per sample.
• No real software examples - to force imagination :-)

ideas/suggestions

wellcome

About

A simple design patterns example in a form of a java Maven project.

Topics

Resources

License

Stars

Watchers

Forks

Languages