Skip to content

Warn when a server plugin class implements no plugin type - #576

Open
Hisham-InfoGleam wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
Hisham-InfoGleam:fix/398-warn-untyped-server-plugin
Open

Hisham-InfoGleam wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
Hisham-InfoGleam:fix/398-warn-untyped-server-plugin

Conversation

@Hisham-InfoGleam

Copy link
Copy Markdown

Fixes #398.

A server class that implements ServerPlugin but none of the plugin type interfaces is instantiated by initPlugins() and then ignored. It is never started or stopped, and nothing in the log says why.

This change logs a warning that names the plugin and the class. It follows the direction in the issue: the behaviour stays the same, and only the silent part is fixed. The compile-time check is left out.

Tests

  • A class with no plugin type logs the warning and stays unregistered.
  • A ResourcePlugin logs no warning and is registered.
  • ./gradlew :server:test passes locally (851 tests).

initPlugins registers a server class once for each plugin type
interface it implements. A class that implements ServerPlugin but none
of those interfaces was instantiated and then ignored: it was never
added to serverPlugins, so start() and stop() were never called, and
nothing in the log said why.

Log a warning that names the plugin and the class. Which plugins are
registered, started and stopped does not change.

Fixes OpenIntegrationEngine#398

Assisted-by: Claude:claude-fable-5-2
Signed-off-by: Hisham Alrashdan <hisham@infogleam.com>
@Hisham-InfoGleam
Hisham-InfoGleam marked this pull request as ready for review November 13, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ServerPlugin implementing no plugin type interface is silently never started or stopped

1 participant