-
Notifications
You must be signed in to change notification settings - Fork 14
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
tmf: Use ITmfConfiguration configuration create and update methods #167
tmf: Use ITmfConfiguration configuration create and update methods #167
Conversation
} catch (Exception e) { | ||
throw new TmfConfigurationException("Can't convert input configuration to Map to create configuration", e); //$NON-NLS-1$ | ||
} | ||
return create(map); |
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.
You can just pass configuration.getParameters() directly?
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.
True. That will make it simpler and not dependency to GSON is added.
} catch (Exception e) { | ||
throw new TmfConfigurationException("Can't convert input configuration to Map to update configuration", e); //$NON-NLS-1$ | ||
} | ||
return update(id, map); |
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.
You can just pass configuration.getParameters() directly?
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.
True. That will make it simpler and not dependency to GSON is added.
8b7844c
to
fc2ecef
Compare
* Creates a new configuration instance. | ||
* <p> | ||
* The parameters to be provided are described by | ||
* {@link ITmfConfigurationSourceType#getConfigParamDescriptors()}. |
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.
by schema or list of ....
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.
Done
/** | ||
* Updates a configuration instance. | ||
* <p> | ||
* The parameters to be provided are described by |
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.
by schema or list of ...
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.
Done
- Add new API and default implementation of create and update methods in ITmfConfigurationSource. - Change create method of ITmfDataProviderConfigurator. It has not been released and can be changed. This is as alternative to Map<String, Object>. [Added] ITmfConfiguration configuration create and update methods Signed-off-by: Bernd Hufmann <[email protected]>
fc2ecef
to
4b6d1cb
Compare
This is as alternative to Map<String, Object>.
[Added] ITmfConfiguration configuration create and update methods
Signed-off-by: Bernd Hufmann [email protected]