question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for builder instance module methods

See original GitHub issue

Hi,

a lot of us are probably using Dagger modules with constructor parameters. It would be great if you could use such a construction in dagger-reflect.

DaggerXComponent.builder()
                .xModule(new XModule(this))
                .build();

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JakeWhartoncommented, Jun 10, 2020

They’re faster and optimize better. If you’re tempted to make stateful modules just put the state into the graph directly and use stateless modules instead.

0reactions
JakeWhartoncommented, Jun 19, 2020

It would be great not to support it, yes. I don’t want to duplicate the logic of Dagger for stateful module awareness and the associated builder logic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Ruby Module Builder Pattern - dejimata
At its core, the Module Builder is an extremely simple, elegant, and versatile way of dynamically defining named, customizable modules to mix ...
Read more >
Configurable Ruby Modules: The Module Builder Pattern
Explore how to implement configurable modules in Ruby — a technique sometimes referred to as the Module Builder Pattern.
Read more >
Can I invoke an instance method on a Ruby module without ...
To invoke a module instance method without including the module (and without creating intermediary objects): class UsefulWorker def do_work ...
Read more >
Action modules supported by AWSTOE component manager
Describes the features of commonly used AWSTOE action modules, and how to ... Image Builder, use AWSTOE action modules to help configure the...
Read more >
ModuleBuilder Class (System.Reflection.Emit) | Microsoft Learn
To get an instance of ModuleBuilder, use the AssemblyBuilder.DefineDynamicModule method. Constructors. ModuleBuilder(). Properties. Assembly. Gets the dynamic ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found