-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Step definition constructor injection #37
Step definition constructor injection #37
Conversation
…efinition classes in object factory
…efinition classes in object factory
This change introduces a number of problems when using Guava to inject dependencies. The error I get is:
The reason for the error is the recursive addition of all constructor arguments to the objectFactory. This should not happen. If anything the addition of constructor arguments should be an implementation detail of whichever ObjectFactory you are using. |
Should note that there is a workaround: where I have a class being injected into a constructor I could replace it with an interface and specify a binding in my Guice module. I'd prefer not to do this though. |
@mattnathan please open a new ticket for this. This pull request is closed, and cannot be reopened. |
Will do |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Registering classes that are constructor arguments of step definition classes into the object-factory. This enables injecting pure pojos into step definition classes.