java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

CRPT idiom

Open iluwatar opened this issue 2 years ago • 3 comments

Implement Curiously Recurring Template Pattern (CRPT) idiom in Java. See the example at https://nuah.livejournal.com/328187.html

Acceptance criteria

  • CRPT pattern implemented according to guidance at https://github.com/iluwatar/java-design-patterns/wiki/01.-How-to-contribute

iluwatar avatar Nov 18 '22 05:11 iluwatar

Hi @iluwatar, can I work on this issue?

AddeusExMachina avatar Feb 17 '23 14:02 AddeusExMachina

Thanks for assigning me this issue. My implementation idea is based on the use of method chaining in a hierarchy of objects like in the link example

AddeusExMachina avatar Mar 01 '23 10:03 AddeusExMachina

I've included a new example that was inspired by an example from Effective Java. These examples can be found in the space and fight packages respectively. Please let me know if you prefer to keep both examples or just one of them.

AddeusExMachina avatar Mar 08 '23 16:03 AddeusExMachina

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 07 '23 16:05 stale[bot]