Contains code examples that demonstrate application of some design patterns.
Pattern | Intent |
---|---|
Resource Manager | Factor out resource life-cycle management into a separate class, focus client code on resource usage. |
Promised Operations | Separate and control access to operations promised between close collaborators without exposing those operations to the general public. |
Selective Visitor | Represent an operation to be performed on the elements of an object structure, allowing the addition of new operations without changing the classes of the elements operated upon, and allowing the easy addition of new element classes to the framework. |
You'll need (at least) Java SE JDK 8, due to its support for lambdas, which get used in these examples. You'll also need Maven, at least version 3.5.0 is recommended.
Clone this repository, and run the following shell command in the base project folder:
mvn -U -B clean install
This will build the examples and run their tests.