-
Notifications
You must be signed in to change notification settings - Fork 71
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
APP-3104: Fluent OBO API for services #284
Conversation
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.
That was pretty fast :)
symphony-bdk-core/src/main/java/com/symphony/bdk/core/OboServiceFactory.java
Outdated
Show resolved
Hide resolved
symphony-bdk-core/src/main/java/com/symphony/bdk/core/service/user/OboUserService.java
Outdated
Show resolved
Hide resolved
symphony-bdk-core/src/main/java/com/symphony/bdk/core/OboServicesFacade.java
Outdated
Show resolved
Hide resolved
symphony-bdk-core/src/main/java/com/symphony/bdk/core/OboServicesFacade.java
Outdated
Show resolved
Hide resolved
@@ -55,18 +41,14 @@ | |||
*/ | |||
@Slf4j | |||
@API(status = API.Status.STABLE) | |||
public class MessageService { | |||
public class MessageService extends OboMessageService { |
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.
I'm a bit afraid of inheritance bringing problems later as it introduces a lot of coupling, do we have use cases where you would need the message service to be used either as OBO or not OBO (i.e the need to have a common parent class/interface)
Have we looked at existing bots to see how they use OBO and if they mix OBO / non OBO usages?
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.
Composition instead of inheritance? We could consider using https://projectlombok.org/features/Delegate.html
symphony-bdk-core/src/main/java/com/symphony/bdk/core/service/OboService.java
Outdated
Show resolved
Hide resolved
👍 for the interface approach |
Let's push it further with the Spring Boot integration (or in a separate PR if you prefer) |
symphony-bdk-core/src/main/java/com/symphony/bdk/core/service/stream/StreamService.java
Show resolved
Hide resolved
symphony-bdk-core/src/test/java/com/symphony/bdk/core/OboServicesTest.java
Outdated
Show resolved
Hide resolved
symphony-bdk-core/src/test/java/com/symphony/bdk/core/OboServicesTest.java
Outdated
Show resolved
Hide resolved
...bdk-core-spring-boot-starter/src/main/java/com/symphony/bdk/spring/config/BdkCoreConfig.java
Show resolved
Hide resolved
symphony-bdk-core/src/test/java/com/symphony/bdk/core/OboServicesTest.java
Outdated
Show resolved
Hide resolved
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.
LGTM 👍
Ticket
APP-3104
Description
Implemented Fluent API for OBO endpoints
Checklist