Skip to content
/ OCSFMediatorExample Public template

A full example of OCSF, JavaFX and EventBus, all running beautifully using Maven.

Notifications You must be signed in to change notification settings

lielfr/OCSFMediatorExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCSF Mediator Example

Structure

Pay attention to the three modules:

  1. client - a simple client built using JavaFX and OCSF. We use EventBus (which implements the mediator pattern) in order to pass events between classes (in this case: between SimpleClient and PrimaryController.
  2. server - a simple server built using OCSF.
  3. entities - a shared module where all the entities of the project live.

Running

  1. Run Maven install in the parent project.
  2. Run the server using the exec:java goal in the server module.
  3. Run the client using the javafx:run goal in the client module.
  4. Press the button and see what happens!

About

A full example of OCSF, JavaFX and EventBus, all running beautifully using Maven.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages