Skip to content

Providers are not exposed correctly when layering Spring and Guice #48

@ThrawnCA

Description

@ThrawnCA

If a Spring configuration imports a Guice module with @EnableGuiceModules, and that module binds a Provider, but the Spring configuration is in turn packaged in a SpringModule, then the "outer" injector cannot see the bound Provider.

We're attempting to migrate an application from Guice to Spring in stages, and this is a minor hindrance. Modules that just bind classes can simply be imported for now and dealt with later, but any provider bindings have to be rewritten as Spring beans or moved to different modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions