Cucumber-JVM: HK2

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

Cucumber Application Testing & Monitoring HK2 Application Layer Libs Dependency Injection
GroupId

GroupId

io.eflabs.cucumber
ArtifactId

ArtifactId

cucumber-hk2
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Cucumber-JVM: HK2
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project Organization

Project Organization

Englishtown

Download cucumber-hk2

How to add to project

<!-- https://jarcasting.com/artifacts/io.eflabs.cucumber/cucumber-hk2/ -->
<dependency>
    <groupId>io.eflabs.cucumber</groupId>
    <artifactId>cucumber-hk2</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.eflabs.cucumber/cucumber-hk2/
implementation 'io.eflabs.cucumber:cucumber-hk2:0.1.0'
// https://jarcasting.com/artifacts/io.eflabs.cucumber/cucumber-hk2/
implementation ("io.eflabs.cucumber:cucumber-hk2:0.1.0")
'io.eflabs.cucumber:cucumber-hk2:jar:0.1.0'
<dependency org="io.eflabs.cucumber" name="cucumber-hk2" rev="0.1.0">
  <artifact name="cucumber-hk2" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.eflabs.cucumber', module='cucumber-hk2', version='0.1.0')
)
libraryDependencies += "io.eflabs.cucumber" % "cucumber-hk2" % "0.1.0"
[io.eflabs.cucumber/cucumber-hk2 "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
io.cucumber : cucumber-java jar 2.4.0
org.glassfish.hk2 : hk2 jar 2.5.0-b32

test (2)

Group / Artifact Type Version
io.cucumber : cucumber-junit jar 2.4.0
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

cucumber-hk2

The HK2 module follows the patterns used by the Cucumber Guice dependency module.

An annotation binding scope named @ScenarioScoped has been added, which when set as the binding scope for a class, will limit the object's lifespan to the lifespan of a Cucumber scenario. (i.e. a new instance of this object will be created for each Cucumber scenario)

The ServiceLocator used by the module is provided by the user's implementation of ServiceLocatorSource. Expose your implementation to the Cucumber runtime by setting the environment key hk2.locator-source to the fully qualified name of the implementing class.

The easiest way to do this is by creating a cucumber.properties file with the configuration values, and placing this file at the root of your classpath.

If you do not provide your own custom ServiceLocatorSource, a default ServiceLocatorSource will be created by the module. This default ServiceLocator will be populated by services found in the META-INF/hk2-locator/default file.

Please refer to the HK2 project page for further information on HK2.

io.eflabs.cucumber

Labs @ EF Education First

Versions

Version
0.1.0