Skip to content

Warn when using Injected[T] in Wireup services #68

Open
@maldoinc

Description

@maldoinc

The use of Injected[T]/ Annotated[T, Inject()] is required when Wireup injects in foreign targets but not necessary in its own services. If a Wireup service has any annotations of that form it should warn and let the user know it's unnecessary. This can be done in the registry when adding dependencies by checking for instances of EmptyContainerInjectionRequest which is what Inject() produces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions