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 2be1ced

Browse filesBrowse files
committed
Improved comments for the facade example.
1 parent 9336284 commit 2be1ced
Copy full SHA for 2be1ced

6 files changed

+31Lines changed: 31 additions & 0 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

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

Copy file name to clipboardExpand all lines: facade/src/main/java/com/iluwatar/App.java
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/**
44
*
55
* Facade (DwarvenGoldmineFacade) provides simpler interface to subsystem.
6+
* http://en.wikipedia.org/wiki/Facade_pattern
67
*
78
*/
89
public class App {
Collapse file

‎facade/src/main/java/com/iluwatar/DwarvenCartOperator.java‎

Copy file name to clipboardExpand all lines: facade/src/main/java/com/iluwatar/DwarvenCartOperator.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* DwarvenCartOperator is one of the goldmine subsystems.
6+
*
7+
*/
38
public class DwarvenCartOperator extends DwarvenMineWorker {
49

510
@Override
Collapse file

‎facade/src/main/java/com/iluwatar/DwarvenGoldDigger.java‎

Copy file name to clipboardExpand all lines: facade/src/main/java/com/iluwatar/DwarvenGoldDigger.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* DwarvenGoldDigger is one of the goldmine subsystems.
6+
*
7+
*/
38
public class DwarvenGoldDigger extends DwarvenMineWorker {
49

510
@Override
Collapse file

‎facade/src/main/java/com/iluwatar/DwarvenGoldmineFacade.java‎

Copy file name to clipboardExpand all lines: facade/src/main/java/com/iluwatar/DwarvenGoldmineFacade.java
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6+
/**
7+
*
8+
* DwarvenGoldmineFacade provides a single interface
9+
* through which users can operate the subsystems.
10+
*
11+
* This makes the goldmine easier to operate and
12+
* cuts the dependencies from the goldmine user to
13+
* the subsystems.
14+
*
15+
*/
616
public class DwarvenGoldmineFacade {
717

818
List<DwarvenMineWorker> workers;
Collapse file

‎facade/src/main/java/com/iluwatar/DwarvenMineWorker.java‎

Copy file name to clipboardExpand all lines: facade/src/main/java/com/iluwatar/DwarvenMineWorker.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* DwarvenMineWorker is one of the goldmine subsystems.
6+
*
7+
*/
38
public abstract class DwarvenMineWorker {
49

510
public void goToSleep() {
Collapse file

‎facade/src/main/java/com/iluwatar/DwarvenTunnelDigger.java‎

Copy file name to clipboardExpand all lines: facade/src/main/java/com/iluwatar/DwarvenTunnelDigger.java
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* DwarvenTunnelDigger is one of the goldmine subsystems.
6+
*
7+
*/
38
public class DwarvenTunnelDigger extends DwarvenMineWorker {
49

510
@Override

0 commit comments

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