Skip to content

Use Weld SE 2.4.4.Final #1166

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

Merged
merged 3 commits into from
Jul 6, 2017
Merged

Use Weld SE 2.4.4.Final #1166

merged 3 commits into from
Jul 6, 2017

Conversation

FSeidinger
Copy link

@FSeidinger FSeidinger commented Jul 5, 2017

Summary

I mainly changed the WeldFactory to create a single WeldContainer instance per factory, using the Weld builder.

Details

The WeldFactory is no longer a subclass of the Weld builder class. It uses now a private member of type WeldContainer to hold a single weld container instance per factory (scenario).

The instance is created in the start method by using the weld builder method initialize and released in the stop method with the close method.

The resolving of class types in the getInstance method is also simplified, because it can use the select method directly on the container instance.

Motivation and Context

I've come to develop this change as described in issue #1165. See this issue for details.

How Has This Been Tested?

The fix uses the scenario tests in cukes.feature as well as the WeldFactoryTest within the cucumber-weld module to prove it's effectiveness.

The fix was tested using the 'mvn clean test' command on Windows 10 using an Oracle JDK8

There should be no impact on other parts of the cucumber code, due to the fact that only internal details within the WeldFactoryTest are changed.

But keep in mind, that the fix cannot be used with the Weld SE version 2.3.5.Final and is therefore not backward compatible to this version. This should be mentioned in the release notes, if applicable.

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist:

  • I've added tests for my code.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Frank Seidinger added 3 commits July 5, 2017 22:32
  - using weld builder to create container instance
  - closing only if running (maybe unnecessary)
  - resolving class types directly via container instance
@mpkorstanje mpkorstanje changed the title Fix for issue #1165 Use Weld SE 2.4.4.Final Jul 6, 2017
@mpkorstanje mpkorstanje merged commit 10943f7 into cucumber:master Jul 6, 2017
@lock
Copy link

lock bot commented Oct 25, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants