X Tutup
Skip to content

Commit 25a2fc7

Browse files
committed
iluwatar#107 Flux example JavaDoc
1 parent 1ec86b7 commit 25a2fc7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

flux/src/main/java/com/iluwatar/flux/app/App.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,23 @@
1313
* applications. Flux eschews MVC in favor of a unidirectional data flow. When a user interacts with
1414
* a React view, the view propagates an action through a central dispatcher, to the various stores that
1515
* hold the application's data and business logic, which updates all of the views that are affected.
16-
*
16+
* <p>
1717
* This example has two views: menu and content. They represent typical main menu and content area of
1818
* a web page. When menu item is clicked it triggers events through the dispatcher. The events are
1919
* received and handled by the stores updating their data as needed. The stores then notify the views
2020
* that they should rerender themselves.
21-
*
21+
* <p>
2222
* http://facebook.github.io/flux/docs/overview.html
2323
*
2424
*/
2525
public class App {
2626

27+
/**
28+
* Program entry point
29+
* @param args command line args
30+
*/
2731
public static void main( String[] args ) {
32+
2833
// initialize and wire the system
2934
MenuStore menuStore = new MenuStore();
3035
Dispatcher.getInstance().registerStore(menuStore);

flux/src/test/java/com/iluwatar/flux/app/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.flux.app.App;
66

7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)
X Tutup