File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
main/java/com/iluwatar/flux/app
test/java/com/iluwatar/flux/app Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 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 */
2525public 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 );
Original file line number Diff line number Diff line change 44
55import com .iluwatar .flux .app .App ;
66
7+ /**
8+ *
9+ * Application test
10+ *
11+ */
712public class AppTest {
813
914 @ Test
You can’t perform that action at this time.
0 commit comments