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

Put Parameter class in core-common, to be used by both client and server #4091

Merged
merged 3 commits into from
Apr 12, 2019

Conversation

jansupol
Copy link
Contributor

@jansupol jansupol commented Apr 4, 2019

Signed-off-by: Jan Supol [email protected]

@jansupol
Copy link
Contributor Author

jansupol commented Apr 4, 2019

This is a proposal of how it would be possible to move the logic of Parameter to Core-Common. There is not a good solution, as Parameter ought to stay in core-server, as it is part of the public API. Since most methods are static and static methods are not virtual, it is hard to make the inheritance work. The options are as follows:

  1. Duplicate the code, maintain only the part in common, deprecate the server.
  2. Move package server (and the two classes - Parameter and AnnotatedMethod) to core-common. Not the cleanest either.
  3. Some solution like this

Copy link
Member

@lukasj lukasj left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@senivam senivam left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants