Skip to content

Implementation of different design patterns used in object oriented world

Notifications You must be signed in to change notification settings

agrawalarpit74/design-patterns

Repository files navigation

design-patterns

Implementation of different design patterns used in object oriented world

Creational

  • Singleton

    Real world example -> LogManager, Database connections,Config files and java.lang.Runtime#getRuntime()
  • Builder

    Real world example -> StringBuilder, javax.json.JsonBuilder,Custom SqlQueryBuilder
  • Prototype

    Usage - Scenario where creation of new objects is costly.
  • Factory

    Real world example ->java.util.Calendar#getInstance()
  • Abstract factory

    Real world example -> javax.xml.parsers.DocumentBuilderFactory#newInstance()

Structural

  • Adaptor

    Real world example -> Making Arrays compatible with Lists, Streams API compatible with other Java streams
  • Bridge

  • Composite

  • Decorator

About

Implementation of different design patterns used in object oriented world

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages