-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create interface for Services and replace static methods with instance methods closes #110 #318
Merged
samirromdhani
merged 1 commit into
develop
from
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
Aug 30, 2023
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
samirromdhani
force-pushed
the
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
branch
6 times, most recently
from
August 23, 2023 10:47
2934c31
to
7ae1629
Compare
samirromdhani
changed the title
[WIP] Create interface for Services and replace static methods with instance methods closes #110
Create interface for Services and replace static methods with instance methods closes #110
Aug 23, 2023
gleizesDor
reviewed
Aug 24, 2023
sct-app/src/main/java/org/lfenergy/compas/sct/app/SclAutomationService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/service/ISubstationService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/service/IExtRefService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/service/IHmiService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/service/ISclService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/service/ISclService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/service/impl/ExtRefService.java
Outdated
Show resolved
Hide resolved
sct-commons/src/main/java/org/lfenergy/compas/sct/commons/dto/PrivateLinkedToSTDs.java
Outdated
Show resolved
Hide resolved
sct-app/src/test/java/org.lfenergy.compas.sct.app/SclAutomationServiceIntegrationTest.java
Show resolved
Hide resolved
samirromdhani
force-pushed
the
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
branch
7 times, most recently
from
August 28, 2023 12:03
916e96a
to
343295f
Compare
samirromdhani
force-pushed
the
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
branch
from
August 29, 2023 08:08
9fe0f18
to
cef23b3
Compare
gleizesDor
approved these changes
Aug 29, 2023
massifben
reviewed
Aug 29, 2023
sct-commons/src/test/java/org/lfenergy/compas/sct/commons/HmiServiceTest.java
Show resolved
Hide resolved
sct-commons/src/test/java/org/lfenergy/compas/sct/commons/ExtRefServiceTest.java
Show resolved
Hide resolved
sct-commons/src/test/java/org/lfenergy/compas/sct/commons/SubstationServiceTest.java
Show resolved
Hide resolved
sct-commons/src/test/java/org/lfenergy/compas/sct/commons/SclElementsProviderServiceTest.java
Show resolved
Hide resolved
sct-commons/src/test/java/org/lfenergy/compas/sct/commons/SclEditorServiceTest.java
Show resolved
Hide resolved
massifben
approved these changes
Aug 30, 2023
samirromdhani
force-pushed
the
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
branch
from
August 30, 2023 09:20
4cb0715
to
ef9d944
Compare
…ods with instance methods closes #110 BREAKING CHANGE: 💥 in sct-commons: The services which provide static methods are moved from scl to commons package. Now those services implements interfaces, no static methods. Expect for PrivateService which is an UtilityClass is renamed to PrivateUtils and moved from scl to util package. Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> refactor(#110): give PrivateService the new name PrivateUtils and change the package from scl to util. Changing the name of PrivateService to PrivateUtils and move it from scl to util package , closes #110 refactor(#110): update SclAutomationService Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> refactor(#110): check review part1 use @requiredargsconstructor, instead of @NoArgsConstructor. use Camel case for PrivateLinkedToStds Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> refactor(#110): check review part2 [use mockito properly] Remove unused test package. Use latest version of mockito. Fix related to version 5.4.0 Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> refactor(#110): review part3 [naming] remove prefix 'I' and add suffix 'Editor' The interfaces are moved from scl to api package. add package doc Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> refactor(#110): review part4 [seperate SclService features ] SclEditor (interface) spec are reduced by adding ReadOnly and Write One Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> refactor(#110): sonar review Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com> docs(#110): update demo project and quickstart page Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com>
samirromdhani
force-pushed
the
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
branch
from
August 30, 2023 09:22
ef9d944
to
c13fce6
Compare
samirromdhani
deleted the
refactor/110-create-interface-for-services-and-replace-static-methods-with-instance-methods
branch
August 30, 2023 09:25
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #110
This pull tries to rearrange the services in a more logical way and replace static methods with instance methods.
[creation] Interfaces implemented by existing services.
[update] UtilityClass is moved to the util package.
Now those services implements interfaces, no static methods.
Expect for PrivateService which is an UtilityClass is renamed to PrivateUtils and moved from scl to util package.