Skip to content

Implements @Nullable injections / Guice Restart #59

@ghost

Description

Allows the following

@Inject @nullable
MyService myService;

If myService does not have a binding defined,

  1. catch CreationException
  2. remove the binding from the module using Guice SPI.
  3. restart guice

@nullable marks an injection as optionnal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions