Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between module, plugin and component in Java?

Tags:

architecture

What is the difference between module, plugin and component in Java?

like image 577
Libra Avatar asked Jan 28 '26 06:01

Libra


1 Answers

In plain Java, your organizational units are just packages and classes.

Some frameworks allow you to define these higher level organizational units in terms of those above, and can manage their lifecycle.

  • A module a quite generic terminology for a related set of classes that perform a task, and are usually bundled together in a jar file.
  • A plugin is, like its name says, a piece of software that you can plug into an application to provide new functionality. Plugins usually implement well defined API's and are reactive (that is, they provide services that the main application can use).
  • A component is any piece of software designed to be reusable.

So you can have modules that contain plugins and components, components that are plugins, etc.

like image 197
fortran Avatar answered Feb 03 '26 07:02

fortran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!