<@U06V253M4> had a thought with wirebox - where cu...
# box-products
d
@bdw429s had a thought with wirebox - where custom dsls could register their own "inject" annotation. so instead of
@inject config:some.config.key
, you can instead write
@config some.config.key
b
@dajester2015 This is an interesting idea, but what is the main purpose? Do you just not like the word "inject"? 🙂 WireBox does allow you to put whatever you want inside the injection annotation via custom DSL namespaces. I would be reticent to muddy the convention of what the name of the annotation is just for consistency across WireBox-powered apps.
cc/ @lmajano
d
the main purpose is to be able to more clearly delineate what type of data is being injected, and having played with Quarkus, it tracks closer to CDI in terms of annotations.
it's not so much the "inject" annotation i do not like as it is the dsl namespacing. i'd rather have a custom annotation than a custom namespace tbh
l
That's understandable. You can definitely do this by creating wirebox listeners already. .
You can listen to instances created and you can then process them yourself for your custom annotations