IntentBuilder
IntentBuilder copied to clipboard
Unique class to manage extra injection
Is it possible to get a unique class to manage extra injection for all the classes annotated with @IntentBuilder
? In the same way that the FragmentArgs
class of the eponymous library developed by Hannes Dorfmann.
Why do you think this would be better? It would be possible but i think it would require the use of reflection. That has two implications.
- Perf
- Not as easy to step through the generated code that gets run.
Actually, it will have effects on performances.
The idea was to have a single entry point to call it directly in the source code, like FragmentArgs or ButterKnife for example, without worrying about the name of the current class.
In any case, the classes *Builder remaining accessible, each one can decide to call it directly if he emphasizes performances.