Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ace4c0

Browse filesBrowse files
committed
App++
App++
1 parent 7015e95 commit 1ace4c0
Copy full SHA for 1ace4c0

2 files changed

+9-11Lines changed: 9 additions & 11 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎module/src/main/java/com/iluwatar/module/App.java‎

Copy file name to clipboardExpand all lines: module/src/main/java/com/iluwatar/module/App.java
+9-10Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@
2121
import java.io.FileNotFoundException;
2222

2323
/**
24-
* The Data Mapper (DM) is a layer of software that separates the in-memory
25-
* objects from the database. Its responsibility is to transfer data between the
26-
* two and also to isolate them from each other. With Data Mapper the in-memory
27-
* objects needn't know even that there's a database present; they need no SQL
28-
* interface code, and certainly no knowledge of the database schema. (The
29-
* database schema is always ignorant of the objects that use it.) Since it's a
30-
* form of Mapper , Data Mapper itself is even unknown to the domain layer.
24+
* The Module pattern can be considered a Creational pattern and a Structural
25+
* pattern. It manages the creation and organization of other elements, and
26+
* groups them as the structural pattern does. An object that applies this
27+
* pattern can provide the equivalent of a namespace, providing the
28+
* initialization and finalization process of a static class or a class with
29+
* static members with cleaner, more concise syntax and semantics.
3130
* <p>
32-
* The below example demonstrates basic CRUD operations: Create, Read, Update,
33-
* and Delete.
31+
* The below example demonstrates a use case for testing two different modules:
32+
* File Logger and Console Logger
3433
*
3534
*/
3635
public final class App {
@@ -39,7 +38,7 @@ public final class App {
3938
public static ConsoleLoggerModule consoleLoggerModule = null;
4039

4140
public static void prepare() throws FileNotFoundException {
42-
41+
4342
fileLoggerModule = FileLoggerModule.getSingleton();
4443
consoleLoggerModule = ConsoleLoggerModule.getSingleton();
4544

Collapse file

‎module/src/test/java/com/iluwatar/module/AppTest.java‎

Copy file name to clipboardExpand all lines: module/src/test/java/com/iluwatar/module/AppTest.java
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.junit.Test;
2626

2727
/**
28-
* Tests that Data-Mapper example runs without errors.
2928
*/
3029
public final class AppTest {
3130

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.