This repository contains the examples created whilst watching the Design Patterns in Java: Creational course on Pluralsight.
Import the Gradle dependencies first, to make sure all necessary libraries are installed. Each package in the java folder contains detailed instructions on how the pattern is used.
You can run any Demo file within this project with the following gradle command:
gradlew clean build -PmainClass=com.pluralsight.singleton.DbSingletonDemo run
Where the -PmainClass
argument should be replaced by the location of Demo file. This will not work if you give Gradle
a file without a main
method.