-
Notifications
You must be signed in to change notification settings - Fork 71
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
Conversation
…/kumuluzee into feature/config-extension
…/kumuluzee into feature/config-extension # Conflicts: # core/src/main/java/com/kumuluz/ee/EeApplication.java # core/src/main/java/com/kumuluz/ee/loaders/ExtensionLoader.java
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
No description provided.