Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Comments

Update Dagger and implement Component.Factory type for components#325

Merged
thagikura merged 1 commit intogoogle:masterfrom
nuhkoca:new-dagger-factory
Aug 27, 2019
Merged

Update Dagger and implement Component.Factory type for components#325
thagikura merged 1 commit intogoogle:masterfrom
nuhkoca:new-dagger-factory

Conversation

@nuhkoca
Copy link
Contributor

@nuhkoca nuhkoca commented Aug 22, 2019

I have implemented the latest version of Dagger which brings out Factory types for components.

As per the official documentation which is placed here

  • Add the ability to create @Component.Factory types for components instead of @Component.Builders.
  • An @Component.Factory is stateless and has a single method, returning the creator type, that takes parameters for anything that a Builder could have setters for.
  • @BindsInstance can now be applied to the parameter of a setter method on a builder rather than to the setter method itself, for consistency with factory methods.

@thagikura thagikura merged commit 7b1e6c3 into google:master Aug 27, 2019
@thagikura
Copy link
Contributor

LGTM. Thanks!

@nuhkoca
Copy link
Contributor Author

nuhkoca commented Aug 28, 2019

You are most welcome. Glad to see that it had been merged. Thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants