-
Notifications
You must be signed in to change notification settings - Fork 69
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-3082 Architecture Presentation #258
Merged
thibauult
merged 10 commits into
finos:master
from
thibauult:APP-3082_Architecture-presentation
Oct 5, 2020
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
378d1e1
APP-3082 SVG Rendering in Markdown test
thibauult 3648128
APP-3082 Updated diagram
thibauult ed839a3
APP-3082 Removed unused Jersey dependency
thibauult f0bc35f
APP-3082 WIP
thibauult ca5ab02
APP-3110 arch doc
thibauult dda117e
APP-3110 removed unused javax.ws.rs.core.GenericType import from ApiE…
thibauult 384002b
Merge remote-tracking branch 'upstream/master' into APP-3082_Architec…
thibauult c5381d4
APP-3082 fixes
thibauult 43836e5
Merge remote-tracking branch 'upstream/master' into APP-3082_Architec…
thibauult fc8761d
APP-3082 Link to Architecture Presentation from ./docs/index.md
thibauult File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# BDK Architecture Presentation | ||
The Symphony BDK for Java is a multi-module library that uses [Gradle](https://gradle.org/) as build system. | ||
This page will help to clearly understand how the library has been designed. This can be also useful for new contributors | ||
aiming to provide additional features or implementations or existing APIs. | ||
|
||
## Architecture Overview | ||
The following diagram aims to give an overview of the different layers and modules provided by the BDK library. | ||
![Architecture Overview Diagram](architecture.svg) | ||
|
||
### symphony-bdk-core | ||
The `symphony-bdk-core` is the main module that allows developers to write bots from a pure Java main application. It contains | ||
all necessary BDK features such as: | ||
- [configuration](../configuration.md) | ||
- [authentication](../authentication.md) | ||
- [datafeed](../datafeed.md) | ||
- [services](../message.md) | ||
- [activity API](../activity-api.md) | ||
|
||
#### Code Generation | ||
The `symphony-bdk-core` module relies on the [openapi-generator-maven-plugin](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-maven-plugin/README.md) | ||
to generate API clients and models from official Symphony's [Swagger specifications](https://github.com/symphonyoss/symphony-api-spec). | ||
API's clients are located under package `com.symphony.bdk.gen.api` and models under `com.symphony.bdk.gen.api.model`. | ||
|
||
### symphony-bdk-http | ||
The `symphony-bdk-http-api` module defines a generic interface for performing HTTP calls. Along with this interface, it | ||
also provides a utility `com.symphony.bdk.http.api.HttpClient` class helping developers to perform calls to external systems. | ||
> :warning: It is important to notice that interface `com.symphony.bdk.http.api.ApiClient` is used by generated code. | ||
> Changing contract would break the build. See [Code Generation](#code-generation). | ||
|
||
At the moment, two different implementations have been created for the `com.symphony.bdk.http.api.ApiClient` interface: | ||
- `com.symphony.bdk.http.jersey2.ApiClientJersey2` contained in module `symphony-bdk-http-jersey2` (default implementation for [Core](#symphony-bdk-core)) | ||
- `com.symphony.bdk.http.webclient.ApiClientWebClient` contained in module `symphony-bdk-http-webclient` (default implementation for [Spring Boot](#symphony-bdk-spring)) | ||
|
||
### symphony-bdk-template | ||
The `symphony-bdk-template-api` module defines a set of interfaces that allows developers to load and fill text files with | ||
data. This API is especially useful for complex MessageML templating. | ||
|
||
At the moment, two different module implementations have been created: | ||
- `symphony-bdk-template-freemarker` | ||
- `symphony-bdk-template-handlebars` | ||
|
||
### symphony-bdk-spring | ||
The Symphony BDK comes also with two _starter_ modules to ease integration with the Spring Boot framework: | ||
- `symphony-bdk-core-spring-boot-starter` that is basically a wrapper around the [symphony-bdk-core](#symphony-bdk-core) module | ||
- `symphony-bdk-app-spring-boot-starter` that is a foundation for [Extension Applications](https://developers.symphony.com/symphony-developer/docs/overview-of-extension-applications) | ||
backend development |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
description = 'Symphony Java BDK Core Http API' | ||
|
||
dependencies { | ||
|
||
compileOnly 'org.projectlombok:lombok' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
|
||
implementation 'org.apiguardian:apiguardian-api' | ||
implementation 'org.glassfish.jersey.core:jersey-client' | ||
} | ||
|
6 changes: 3 additions & 3 deletions
6
...-bdk-http/symphony-bdk-http-api/src/main/java/com/symphony/bdk/http/api/ApiException.java
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
9 changes: 9 additions & 0 deletions
9
...-bdk-http/symphony-bdk-http-api/src/main/java/com/symphony/bdk/http/api/package-info.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* This module provides contract for performing HTTP calls. | ||
* | ||
* <p> | ||
* <b>WARNING</b>: The interface {@link com.symphony.bdk.http.api.ApiClient} is used by generated code. | ||
* Changing the contract will break code generation. | ||
* </p> | ||
*/ | ||
package com.symphony.bdk.http.api; |
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.
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.
Should we link to this document from the index of the documentation?