DependencyInjector icon indicating copy to clipboard operation
DependencyInjector copied to clipboard

Add a @Config-like annotation

Open ljacqu opened this issue 8 years ago • 1 comments

Goes hand in hand with #44 (kind of), I'd like to create an annotation that can be put on other annotations to signal that it is a "Config" annotation, i.e. that it has one value associated to it, and that if it was not provided beforehand the injector knows it needs to throw (and it shouldn't try to instantiate the class).

Besides allowing the injector to fail faster and with a more specific error message, it offers the possibility to keep track of all such "config" annotations by checking for the usages of @Config in one's project.

@Config is probably a wrong name for it since this behavior is not necessarily limited to some "config" values.

ljacqu avatar Jan 15 '17 13:01 ljacqu

Maybe name it Identifier?

ljacqu avatar Jun 10 '17 12:06 ljacqu