Skip to content

Commit

Permalink
App++
Browse files Browse the repository at this point in the history
App++
  • Loading branch information
inbravo committed Oct 27, 2016
1 parent 7015e95 commit 1ace4c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
19 changes: 9 additions & 10 deletions module/src/main/java/com/iluwatar/module/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@
import java.io.FileNotFoundException;

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

public static void prepare() throws FileNotFoundException {

fileLoggerModule = FileLoggerModule.getSingleton();
consoleLoggerModule = ConsoleLoggerModule.getSingleton();

Expand Down
1 change: 0 additions & 1 deletion module/src/test/java/com/iluwatar/module/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.junit.Test;

/**
* Tests that Data-Mapper example runs without errors.
*/
public final class AppTest {

Expand Down

0 comments on commit 1ace4c0

Please sign in to comment.