IntentBuilder icon indicating copy to clipboard operation
IntentBuilder copied to clipboard

Unique class to manage extra injection

Open RoRoche opened this issue 9 years ago • 2 comments

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.

RoRoche avatar Jun 17 '15 07:06 RoRoche

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.

  1. Perf
  2. Not as easy to step through the generated code that gets run.

emilsjolander avatar Jun 29 '15 01:06 emilsjolander

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.

RoRoche avatar Jun 29 '15 07:06 RoRoche