#90 Skeleton for Front Controller example
This commit is contained in:
19
front-controller/pom.xml
Normal file
19
front-controller/pom.xml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<project
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.iluwatar</groupId>
|
||||||
|
<artifactId>java-design-patterns</artifactId>
|
||||||
|
<version>1.2.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>front-controller</artifactId>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
7
front-controller/src/main/java/com/iluwatar/App.java
Normal file
7
front-controller/src/main/java/com/iluwatar/App.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package com.iluwatar;
|
||||||
|
|
||||||
|
public class App {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Hello World!");
|
||||||
|
}
|
||||||
|
}
|
12
front-controller/src/test/java/com/iluwatar/AppTest.java
Normal file
12
front-controller/src/test/java/com/iluwatar/AppTest.java
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package com.iluwatar;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class AppTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
String[] args = {};
|
||||||
|
App.main(args);
|
||||||
|
}
|
||||||
|
}
|
114
pom.xml
114
pom.xml
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<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">
|
<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">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.iluwatar</groupId>
|
<groupId>com.iluwatar</groupId>
|
||||||
@ -64,9 +65,10 @@
|
|||||||
<module>thread-pool</module>
|
<module>thread-pool</module>
|
||||||
<module>private-class-data</module>
|
<module>private-class-data</module>
|
||||||
<module>object-pool</module>
|
<module>object-pool</module>
|
||||||
<module>dependency-injection</module>
|
<module>dependency-injection</module>
|
||||||
<module>naked-objects</module>
|
<module>naked-objects</module>
|
||||||
</modules>
|
<module>front-controller</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -88,44 +90,42 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!--
|
<!-- This plugin's configuration is used to store Eclipse m2e settings
|
||||||
This plugin's configuration is used to store Eclipse m2e settings only.
|
only. It has no influence on the Maven build itself. TODO: Remove when the
|
||||||
It has no influence on the Maven build itself.
|
m2e plugin can correctly bind to Maven lifecycle -->
|
||||||
TODO: Remove when the m2e plugin can correctly bind to Maven lifecycle
|
<plugin>
|
||||||
-->
|
<groupId>org.eclipse.m2e</groupId>
|
||||||
<plugin>
|
<artifactId>lifecycle-mapping</artifactId>
|
||||||
<groupId>org.eclipse.m2e</groupId>
|
<version>1.0.0</version>
|
||||||
<artifactId>lifecycle-mapping</artifactId>
|
<configuration>
|
||||||
<version>1.0.0</version>
|
<lifecycleMappingMetadata>
|
||||||
<configuration>
|
<pluginExecutions>
|
||||||
<lifecycleMappingMetadata>
|
<pluginExecution>
|
||||||
<pluginExecutions>
|
<pluginExecutionFilter>
|
||||||
<pluginExecution>
|
<groupId>org.jacoco</groupId>
|
||||||
<pluginExecutionFilter>
|
<artifactId>
|
||||||
<groupId>org.jacoco</groupId>
|
jacoco-maven-plugin
|
||||||
<artifactId>
|
</artifactId>
|
||||||
jacoco-maven-plugin
|
<versionRange>
|
||||||
</artifactId>
|
[0.6.2,)
|
||||||
<versionRange>
|
</versionRange>
|
||||||
[0.6.2,)
|
<goals>
|
||||||
</versionRange>
|
<goal>prepare-agent</goal>
|
||||||
<goals>
|
</goals>
|
||||||
<goal>prepare-agent</goal>
|
</pluginExecutionFilter>
|
||||||
</goals>
|
<action>
|
||||||
</pluginExecutionFilter>
|
<ignore />
|
||||||
<action>
|
</action>
|
||||||
<ignore/>
|
</pluginExecution>
|
||||||
</action>
|
</pluginExecutions>
|
||||||
</pluginExecution>
|
</lifecycleMappingMetadata>
|
||||||
</pluginExecutions>
|
</configuration>
|
||||||
</lifecycleMappingMetadata>
|
</plugin>
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
@ -141,26 +141,26 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.eluder.coveralls</groupId>
|
<groupId>org.eluder.coveralls</groupId>
|
||||||
<artifactId>coveralls-maven-plugin</artifactId>
|
<artifactId>coveralls-maven-plugin</artifactId>
|
||||||
<version>${coveralls.version}</version>
|
<version>${coveralls.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<repoToken>jb6wYzxkVvjolD6qOWpzWdcWBzYk2fAmF</repoToken>
|
<repoToken>jb6wYzxkVvjolD6qOWpzWdcWBzYk2fAmF</repoToken>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
<version>${jacoco.version}</version>
|
<version>${jacoco.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>prepare-agent</id>
|
<id>prepare-agent</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>prepare-agent</goal>
|
<goal>prepare-agent</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user