Skip to content

Commit 4641ab2

Browse files
author
Stamatis Pitsios
committed
Update MainApp.java
Added a short explanation of the application's logic.
1 parent 6c80af2 commit 4641ab2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

model-view-presenter/src/main/java/com/iluwatar/MainApp.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* The Model-View-Presenter(MVP) architectural pattern, helps us achieve what is
6+
* called "The separation of concerns" principle. This is accomplished
7+
* by separating the application's logic(Model), GUIs(View), and finally
8+
* the way that the user's actions update the application's logic(Presenter).
9+
*
10+
* In the following example, The FileLoader class represents the app's logic,
11+
* the FileSelectorJFrame is the GUI and the FileSelectorPresenter is
12+
* responsible to respond to users' actions.
13+
*
14+
* Finally, please notice the wiring between the Presenter and the View
15+
* and between the Presenter and the Model.
16+
*
17+
*/
318
public class MainApp {
419

520
public static void main(String[] args) {

0 commit comments

Comments
 (0)