-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-3720: Decouple different agents on different maven modules #3830
Conversation
Can you describe new folders structure? |
|
also:
|
That documentation helps. I think @skabashnyuk - at the same time that this is merged, the wiki needs to be updated with an explanation of how this modifies the development workflow. We have sections at the end of that wiki that explain the repository layout, and they need to be updated with this information. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1711/ |
Build # 1729 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1729/ to view the results. |
@TylerJewell |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1736/ |
@tolusha - I think the code structure of |
this.agentIds = ImmutableList.copyOf(this.agents.keySet()); | ||
public AgentRegistryImpl(Set<Agent> agents) throws IOException { | ||
this.agents = new HashMap<>(agents.size()); | ||
agents.forEach(a -> this.agents.put(a.getId(), a)); |
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.
Here it is possible that someone declared 2 equal agents.
If all of them have equals and hashcode then multibinder will throw an error.
If multibinder is declared anywhere with support of duplicates then it won't throw exception.
If equals and hashcode is not overridden or overridden in a different ways then here duplicate agent will override previous one.
* @author Anatolii Bazko | ||
*/ | ||
@Singleton | ||
public class LSCSharpAgent implements Agent { |
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.
Looks like all the agents are very similar. Please consider creation of abstract base class for them.
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.
Looks good. Great job!
Please consider improvements I commented.
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1751/ |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1761/ |
ok |
What does this PR do?
Adds module per agent
What issues does this PR fix or reference?
#3720
Previous behavior
All agents are located in the same folder
Tests written?
Yes
Changelog
Decouple different agents on different maven modules