From ff955b4d95fc1abed5b9c2b3e0d2d20c8d9a980a Mon Sep 17 00:00:00 2001 From: YanchaoMiao <11710204@mail.sustech.edu.cn> Date: Thu, 7 May 2020 04:11:54 +0800 Subject: [PATCH] Add files via upload --- component/README.md | 25 +++++++++++++++++++++ component/component.iml | 31 ++++++++++++++++++++++++++ component/pom.xml | 48 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 component/README.md create mode 100644 component/component.iml create mode 100644 component/pom.xml diff --git a/component/README.md b/component/README.md new file mode 100644 index 000000000..024e7455c --- /dev/null +++ b/component/README.md @@ -0,0 +1,25 @@ +--- +layout: pattern +title: Component +folder: component +permalink: /patterns/component/ +categories: Behavioral +tags: + - Java +--- + +## Intent + +> Allow a single entity to span multiple domains without coupling the domains to each other. + +## Class diagram +![alt text](./etc/commander.urm.png "Commander class diagram") + +## Applicability +1.You want to keep decoupled from each other in a class which contains multiple domains. +2.A class is too big and massive. + + +## Reference + +* [http://gameprogrammingpatterns.com/component.html] diff --git a/component/component.iml b/component/component.iml new file mode 100644 index 000000000..f7c05039f --- /dev/null +++ b/component/component.iml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/component/pom.xml b/component/pom.xml new file mode 100644 index 000000000..62a95ec9c --- /dev/null +++ b/component/pom.xml @@ -0,0 +1,48 @@ + + + + java-design-patterns + com.iluwatar + 1.23.0-SNAPSHOT + + 4.0.0 + + component + + + junit + junit + 4.12 + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + + + + com.iluwatar.component.App + + + + + + + + + + \ No newline at end of file