Skip to content

Conversation

@chanseokoh
Copy link
Member

While reviewing #2906, I was perplexed as it seemed working even though objectFactory.newInstance() does not pass an objectFactory as a constructor argument. Turns out some classes are auto-injected:

In addition to those parameters provided as an argument to this method, the following services are also available for injection:

  • ObjectFactory.

To avoid potential confusion in the future, I'm making the usage consistent.

Copy link
Contributor

@mpeddada1 mpeddada1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty cool.

@chanseokoh chanseokoh merged commit b9cd564 into master Dec 4, 2020
@chanseokoh chanseokoh deleted the gradle-params-cleanups branch December 4, 2020 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants