avaje-inject icon indicating copy to clipboard operation
avaje-inject copied to clipboard

Adds `@External` annotation

Open SentryMan opened this issue 2 months ago • 4 comments

Adds a similar annotation to @Nullable such that compile time validations can be disabled for beans not managed by Inject, but will still fail at runtime if the bean is not present. An example use case is beans provided by Jooby

  • Adds an @External marker annotation
  • updates generator to use this new annotation
  • exempts Nullable/Optional beans from strict wiring calculus
  • renames the processor

SentryMan avatar Apr 25 '24 19:04 SentryMan

renames the processor

Any reason for that?

rbygrave avatar Apr 25 '24 20:04 rbygrave

Any reason for that?

Aesthetics

SentryMan avatar Apr 25 '24 20:04 SentryMan

hmm wait a sec

SentryMan avatar Apr 26 '24 04:04 SentryMan

Okay, I'm good with this

SentryMan avatar Apr 26 '24 13:04 SentryMan

I'm pretty sure this does not support partial compile.

Edit: Seems like it isn't needed - all good !!

rbygrave avatar May 02 '24 09:05 rbygrave