mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 08:15:38 +00:00
#107 Facade example JavaDoc
This commit is contained in:
1 parent
527da253c9
commit
87717a581b
2 files changed
+41
-31
No files matched your search
@@ -1,17 +1,22 @@
|
|||||||
package com.iluwatar.facade;
|
package com.iluwatar.facade;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Facade (DwarvenGoldmineFacade) provides simpler interface to subsystem.
|
* Facade ({@link DwarvenGoldmineFacade}) provides simpler interface to subsystem.
|
||||||
* http://en.wikipedia.org/wiki/Facade_pattern
|
* <p>
|
||||||
*
|
* http://en.wikipedia.org/wiki/Facade_pattern
|
||||||
*/
|
*
|
||||||
public class App {
|
*/
|
||||||
|
public class App {
|
||||||
public static void main(String[] args) {
|
|
||||||
DwarvenGoldmineFacade facade = new DwarvenGoldmineFacade();
|
/**
|
||||||
facade.startNewDay();
|
* Program entry point
|
||||||
facade.digOutGold();
|
* @param args command line args
|
||||||
facade.endDay();
|
*/
|
||||||
}
|
public static void main(String[] args) {
|
||||||
}
|
DwarvenGoldmineFacade facade = new DwarvenGoldmineFacade();
|
||||||
|
facade.startNewDay();
|
||||||
|
facade.digOutGold();
|
||||||
|
facade.endDay();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,14 +1,19 @@
|
|||||||
package com.iluwatar.facade;
|
package com.iluwatar.facade;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.iluwatar.facade.App;
|
import com.iluwatar.facade.App;
|
||||||
|
|
||||||
public class AppTest {
|
/**
|
||||||
|
*
|
||||||
@Test
|
* Application test
|
||||||
public void test() {
|
*
|
||||||
String[] args = {};
|
*/
|
||||||
App.main(args);
|
public class AppTest {
|
||||||
}
|
|
||||||
}
|
@Test
|
||||||
|
public void test() {
|
||||||
|
String[] args = {};
|
||||||
|
App.main(args);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user