Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load ConnectionProfile subtype at start #18

Merged

Conversation

akshay-ap
Copy link
Collaborator

No description provided.

@@ -28,6 +33,13 @@ public class ObjectMapperProvider implements ContextResolver<ObjectMapper> {

public ObjectMapperProvider() {
defaultObjectMapper = createDefaultMapper();
if (Boolean.getBoolean("enablePluginsAtStart")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this block of code do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code checks if discovered plugins should be enabled at the start. If yes, then finds the started plugins and then, find all possible subtypes of AbstractConnectionProfile class and register those into ObjectMapper provider. The code is placed here because this should be done during initiation of the provider.

@ghareeb-falazi ghareeb-falazi merged commit 553a03d into modular-adapters Jun 3, 2022
@ghareeb-falazi ghareeb-falazi deleted the load-connection-profile-subtypes-at-start branch January 8, 2023 15:49
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.

2 participants