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

Feature/config extension #21

Merged
merged 13 commits into from
May 22, 2017
Merged

Feature/config extension #21

merged 13 commits into from
May 22, 2017

Conversation

jmezna
Copy link
Member

@jmezna jmezna commented May 11, 2017

No description provided.

@TFaga TFaga self-requested a review May 12, 2017 08:42
@TFaga TFaga self-assigned this May 12, 2017
@TFaga TFaga added this to the Version 2.3.0 milestone May 12, 2017
Copy link
Member

@TFaga TFaga left a comment

Choose a reason for hiding this comment

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

Added a few comments to the code. Please have a look.

}

public void unsubscribe(ConfigurationListener listener) {
config.getDispatcher().unsubscribe(listener);
}

public void notifyChange(String key, String value) {
Copy link
Member

Choose a reason for hiding this comment

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

Remove this method in the util in order to not allow anyone to publish changes to the config. Instead pass the ConfigurationDispatcher instance to the ConfigurationSource and make sure the source calls notify on that instance.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

.getDeclaredAnnotation(EeExtensionDef.class).type().equals(EeExtensionType.CONFIG)).collect
(Collectors.toList());

for (Extension configExtension : configExtensions) {
Copy link
Member

Choose a reason for hiding this comment

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

Additionally check if the extension contains a list of required Ee dependencies and validate if they are fulfilled.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

(Collectors.toList());

log.info("Initialising non-config extensions");
for (Extension extension : otherExtensions) {
Copy link
Member

Choose a reason for hiding this comment

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

Same as above for the config extensions.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@TFaga TFaga merged commit e982ecd into master May 22, 2017
@TFaga TFaga deleted the feature/config-extension branch May 25, 2017 14:08
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.

2 participants