Support optional dependencies and unify @Dependency property wrappers
:recycle: Current situation & Problem
As of right now, we support infrastructure for two property wrappers @Dependency and @DynamicDependencies. The latter one induces particularly hard to understand syntax.
This PR revises the dependency infrastructure and removes @DynamicDependencies by introducing a result-builder-based approach.
Support optional dependencies and unify @Dependency property wrappers
:recycle: Current situation & Problem
As of right now, we support infrastructure for two property wrappers
@Dependency
and@DynamicDependencies
. The latter one induces particularly hard to understand syntax. This PR revises the dependency infrastructure and removes@DynamicDependencies
by introducing a result-builder-based approach.Below code example demonstrates the difference:
:gear: Release Notes
@DynamicDependencies
in favor of a new DSL-based approach used within the@Dependency
property wrapper directly.:books: Documentation
Documentation was updated.
:white_check_mark: Testing
Functionality was verified with existing test cases. New tests were added for new functionality.
:pencil: Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: