Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constructIfMissing to wiring. #92

Merged
merged 2 commits into from
Nov 1, 2016
Merged

Conversation

israelcolomer
Copy link
Collaborator

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 71.703% when pulling b0f53b6 on ic/improve-wiring into bfe908e on master.

* @throws IllegalArgumentException If the class is an interface, abstract class or has no public constructors.
* @throws IllegalStateException If all dependencies for constructing an instance cannot be satisfied.
*/
public <T> T constructIfMissing(Class<T> clazz, Class<?>... parameterTypes) {
Copy link
Owner

Choose a reason for hiding this comment

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

We should call this constructWithIfMissing to match the pattern used with construct and constructWith

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 71.703% when pulling 3d677d2 on ic/improve-wiring into bfe908e on master.

@israelcolomer israelcolomer merged commit 5a212d3 into master Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants