Open
Conversation
hobadams
reviewed
Dec 23, 2020
| In order to bring more flexibility in dependencies instance lifetime management, Falcon Server internally implements Dependency Inversion pattern via [Iversify JS](http://inversify.io/) framework. | ||
| It means that Falcon Server internals, including extension components (Api DataSources, Extensions end Endpoints) are registered in Inversify container. Even they are setted up via configuration files. | ||
|
|
||
| In order to override existing or register new dependency in Falcon Server you need to override `configure` method of Falcon Server: |
Contributor
There was a problem hiding this comment.
Suggested change
| In order to override existing or register new dependency in Falcon Server you need to override `configure` method of Falcon Server: | |
| In order to override or register a dependency in Falcon Server you need to override the `configure` method in Falcon Server: |
Borales
suggested changes
Jan 8, 2021
| ## Dependency Inversion | ||
|
|
||
| In order to bring more flexibility in dependencies instance lifetime management, Falcon Server internally implements Dependency Inversion pattern via [Iversify JS](http://inversify.io/) framework. | ||
| It means that Falcon Server internals, including extension components (Api DataSources, Extensions end Endpoints) are registered in Inversify container. Even they are setted up via configuration files. |
Contributor
There was a problem hiding this comment.
we could add more info about some internal things that we did, like getting ApiDataSources by using registered keywords, like Config, EventEmitter2, containers (Api, Endpoint, Extension), entries by type - ApiDataSource, {name}DataSource, components and so on. These things are highly useful and important to know.
This file contains hidden or 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
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.
To be honest I do not have any idea what I can add more here. I believe it does not make any sense do duplicate
inversifydocs,Also, I can not see too much sense with listing everything what is registered in ioc container, as it can be easily browsed in debug mode (moreover it will constantly change in time).