iluwatar / iluwatar/java-design-patterns

Plugin pattern

Open
#351 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #1234 by @LiHao-MS — closed without merging
epic: pattern info: help wanted type: feature
Dominant language
Java
Stars
94.7k
Forks
27.4k
Avg merge
3d 4h
Merged PRs (30d)
10

Description

Description

The Plugin design pattern allows a software application to support extension through third-party plugins, providing flexibility and scalability. This pattern is particularly useful for applications requiring dynamic and interchangeable components.

Main Elements of the Plugin Design Pattern:
  1. Plugin Interface: Defines the methods that plugins must implement.
  2. Concrete Plugins: Implementations of the plugin interface, providing specific functionality.
  3. Plugin Manager: Responsible for loading, initializing, and managing the lifecycle of plugins.
  4. Application Core: The main application that uses the plugin manager to interact with plugins.
References:
Acceptance Criteria:
  1. A Plugin Interface is defined with necessary methods that plugins must implement.
  2. At least two Concrete Plugin implementations are created, showcasing different functionalities.
  3. A Plugin Manager class is implemented to handle loading, initializing, and managing the plugins.
  4. Demonstration of the pattern in a sample application, showing dynamic loading and usage of plugins.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the repository's existing Java design-pattern implementations and the linked Contribution Guidelines. Define the plugin interface, two concrete plugins, plugin manager, and sample application described in the acceptance criteria; completion requires demonstrating dynamic loading and usage. Check the issue's linked pull request and discussion before starting.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.