Let’s discover plugin systems for backend, and today we dive into a tiny “Plugin Framework for Java” or PF4J.
We will discuss what a plugin is, how it works, and analyze the code of an app written as an example of implementation of PF4J into a Spring Application.
Get the code from this video here: https://github.com/asm0dey/pf4j-demo
Introduction
0:00 Backend development is not only about services, monoliths, or microservices
0:38 Introduction to PF4J (Plugin Framework for Java)
1:01 What is a plugin?
1:51 Extension point in PF4J
2:21 Plugin lifecycle
2:36 More on PF4J. Three concepts: Extension point, Plugin, Extension explained
3:00 Desktop or web applications?
3:15 How PF4J Spring is different from usual PF4J?
Code Example
3:41 Project structure
4:05 Commons module
4:53 Plugins
7:07 Packaging plugins. Metainformation
8:15 Using plugins inside Spring application
8:57 Spring plugin manager
10:01 Testing application
Conclusion
10:25 When you should use PF4J
10:59 Deploy only parts of application that you need
Discover BellSoft: https://bell-sw.com/
Visit us on LinkedIn: / bell-sw
Read Pasha on X: https://x.com/asm0di0
On this page of the site you can watch the video online PF4J: Plugin Framework for Java. Plugin Systems for Backend with a duration of hours minute second in good quality, which was uploaded by the user BELLSOFT 25 February 2025, share the link with friends and acquaintances, this video has already been watched 1,404 times on youtube and it was liked by 38 viewers. Enjoy your viewing!