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 jan.supol@oracle.com

@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

jansupol added 2 commits April 5, 2019 02:23
… server

Signed-off-by: Jan Supol <jan.supol@oracle.com>
Signed-off-by: Jan Supol <jan.supol@oracle.com>
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

…in the list

Signed-off-by: Jan Supol <jan.supol@oracle.com>
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