Skip to content

Improve extensibility of multi-injected keys #239

@tortmayr

Description

@tortmayr

Double check the codebase and ensure that all all multi-injected classes are bound to self() in Singleton scope before binding them to the multi injection key. This makes it possible to overwrite them.
e.g

bind(MoveMouseListener).toSelf().inSingletonScope();
bind(TYPES.MouseListener).toService(MoveMouseListener); 

instead of

 bind(TYPES.MouseListener).to(MoveMouseListener); 

See also discussion in #234 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions