javantura v4 - spring boot and javafx - can they play together - josip kovaček
Upload: hujak-hrvatska-udruga-java-korisnika-croatian-java-user-association
Post on 21-Feb-2017
96 views
TRANSCRIPT
![Page 1: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/1.jpg)
Spring Boot and JavaFX – can they play together?JOSIP KOVAČEK, KING ICT
![Page 2: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/2.jpg)
Agenda
Motivation
Technologies
Implementation journey
Demo
Conclusion
![Page 3: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/3.jpg)
Motivation (Problem aka Challenge)
Requirements: Embedded + Desktop project
Closed system infrastructure, few dozens of deploy sites
Needs to work with or without internet
Short deadline, probable long term support after handover
Newly formed small team
![Page 4: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/4.jpg)
Technologies used
Spring Boot
JavaFX 8
![Page 5: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/5.jpg)
Technologies used
Spring Boot
Convention over configuration
All Spring goodness included
Kickstart for new project
Opinionated but allows flexibility
Takes care of server
Simplicity, ease of maintenance and configuration
![Page 6: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/6.jpg)
![Page 7: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/7.jpg)
Technologies used
JavaFX 8
Oracle promoted as successor over Swing toolkit
MVC like structure, separation of program and business logic
Cleaner code, easier maintenance
Designed with idea to avoid history pitfalls
Already included in SDK
Gluon Scene Builder
![Page 8: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/8.jpg)
Implementation journey
In search of integration ‘Hello World’
Limited materials on integration available (improving)
JavaFX ignoring spring controller
![Page 9: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/9.jpg)
Demo
Spring Boot Hello World
JavaFX Hello World
Integration
Order of execution
Injection of spring managed controller
Separation of logic
![Page 10: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/10.jpg)
Conclusion
Answer to the question – Yes they can ™
Integration - few challenges, many benefits
Best from both worlds
![Page 11: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/11.jpg)
Conclusion
Outdated information on JavaFX part
Limited (but high quality) JavaFX components ecosystem
![Page 12: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/12.jpg)
Conclusion
JavaFX still didn’t get required traction, despite all the benefits
![Page 13: Javantura v4 - Spring Boot and JavaFX - can they play together - Josip Kovaček](https://reader031.vdocuments.us/reader031/viewer/2022022200/58abc9a41a28ab68068b56cf/html5/thumbnails/13.jpg)
Thank you.
Questions?
https://github.com/jolet/spring-boot-javafx