Skip to content

Commit 2a9570c

Browse files
Alejandro Gervasioadamd1985
authored andcommitted
Implementing the Template Method Pattern in Java - BAEL-1289 (eugenp#3078)
* Initial Commit * Added Domain Classes * Update HighEndComputer.java * Update StandardComputer.java * Update TemplateMethodPatternTest.java * Update parent pom.xml * Update pom.xml in template-method submodule * Update readme.md * Update README.md
1 parent 81aecd9 commit 2a9570c

3 files changed

Lines changed: 26 additions & 8 deletions

File tree

‎patterns/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
###Relevant Articles:
22
- [A Guide to the Front Controller Pattern in Java](http://www.baeldung.com/java-front-controller-pattern)
33
- [Introduction to Intercepting Filter Pattern in Java](http://www.baeldung.com/intercepting-filter-pattern-in-java)
4+
- [Implementing the Template Method Pattern in Java](http://www.baeldung.com/template-method-pattern-in-java)

‎patterns/pom.xml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<modules>
1010
<module>front-controller</module>
1111
<module>intercepting-filter</module>
12+
<module>template-method</module>
1213
</modules>
1314

1415
<parent>
@@ -51,4 +52,4 @@
5152
<maven-war-plugin.version>3.0.0</maven-war-plugin.version>
5253
<jetty-maven-plugin.version>9.4.0.v20161208</jetty-maven-plugin.version>
5354
</properties>
54-
</project>
55+
</project>

‎patterns/template-method/pom.xml‎

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.baeldung.templatemethodpattern</groupId>
5-
<artifactId>templatemethodpattern</artifactId>
4+
<groupId>com.baeldung.templatemethod</groupId>
5+
<artifactId>template-method</artifactId>
66
<version>1.0</version>
77
<packaging>jar</packaging>
8-
<properties>
9-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10-
<maven.compiler.source>1.8</maven.compiler.source>
11-
<maven.compiler.target>1.8</maven.compiler.target>
12-
</properties>
8+
<parent>
9+
<groupId>com.baeldung.patterns</groupId>
10+
<artifactId>patterns-parent</artifactId>
11+
<version>1.0.0-SNAPSHOT</version>
12+
<relativePath>..</relativePath>
13+
</parent>
14+
1315
<dependencies>
1416
<dependency>
1517
<groupId>junit</groupId>
@@ -18,4 +20,18 @@
1820
<scope>test</scope>
1921
</dependency>
2022
</dependencies>
23+
<build>
24+
<plugins>
25+
<plugin>
26+
<groupId>org.apache.maven.plugins</groupId>
27+
<artifactId>maven-compiler-plugin</artifactId>
28+
<version>3.7.0</version>
29+
</plugin>
30+
</plugins>
31+
</build>
32+
<properties>
33+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34+
<maven.compiler.source>1.8</maven.compiler.source>
35+
<maven.compiler.target>1.8</maven.compiler.target>
36+
</properties>
2137
</project>

0 commit comments

Comments
 (0)