Skip to content

Singleton *Plugins* don't resolve dependencies recurrently #487

@hinerm

Description

@hinerm

If you have a non-contextual object that you want to connect with other contextual objects, and thus try to Context.inject it, any @Parameters that are SingletonServices will NOT be created/injected. You will get a [ERROR] java.lang.IllegalArgumentException: Required service is missing.

If those singleton services are initialized beforehand, e.g. as an @Parameter or another contextual object that is used before injecting the non-contextual object, then the injection will proceed without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions