Skip to content

Conversation

@dcorbacho
Copy link
Contributor

rabbit_registry classes are currently static, hard-coded in rabbit registry. Dinamically searching for new classes using Erlang attributes allows for plugins to add new classes and make use of the registry.
i.e. shovel protocols can benefit of this feature

rabbit_registry classes are currently static, hard-coded in rabbit registry.
Dinamically searching for new classes using Erlang attributes allows
for plugins to add new classes and make use of the registry.
i.e. shovel protocols can benefit of this feature
@michaelklishin michaelklishin merged commit fd04424 into main Nov 5, 2025
574 of 575 checks passed
@michaelklishin michaelklishin deleted the registry-extensible-class branch November 5, 2025 15:27
@michaelklishin michaelklishin changed the title Rabbit registry: Dinamically allow to define new classes Registry: make it possible to define a custom entity class Nov 5, 2025
@michaelklishin
Copy link
Collaborator

michaelklishin commented Nov 5, 2025

Backporting to v4.2.x because this code path cannot affect anyone except for custom plugins, and the affected custom plugins must have found a way to work around this long existing rabbit_registry limitation one way or another.

So, no one should hit this code path for a while because this is a new low-level extension point.

Per discussion with @dcorbacho.

@michaelklishin michaelklishin changed the title Registry: make it possible to define a custom entity class Registry: make it possible to define a custom entity class via module attributes Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants