org.jvnet.hk2.junit
Annotation Type Hk2RunnerOptions


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface Hk2RunnerOptions

Provide options for tuning the behavior of the Hk2Runner.

Author:
Jeff Trent
See Also:
Hk2Runner

Optional Element Summary
 Class<? extends FileFilter> classpathFilter
          A filter that can be used to optimally select the set of jars (and directories) that contributes to habitat production, filtering out the irrelevant ones.
 boolean enableDefaultRunLevelService
          Flag indicating whether the default RunLevelService is enabled by default
 boolean enableRunLevelConstraints
          Flag indicating whether the standard RunLevel constraints are enabled by default
 Class<? extends HabitatFactory> habitatFactory
          Alternative Habitat Factory from the default
 Class<? extends InhabitantsParserFactory> inhabitantsParserFactory
          Alternative Inhabitants Parser from the default
 Class<? extends Module> module
          The Module to automatically include in the habitat.
 boolean reinitializePerTest
          Flag indicating whether the habitat (and all injections) are recreated after each Test.
 

reinitializePerTest

public abstract boolean reinitializePerTest
Flag indicating whether the habitat (and all injections) are recreated after each Test.

Default:
false

enableDefaultRunLevelService

public abstract boolean enableDefaultRunLevelService
Flag indicating whether the default RunLevelService is enabled by default

Default:
true

enableRunLevelConstraints

public abstract boolean enableRunLevelConstraints
Flag indicating whether the standard RunLevel constraints are enabled by default

Default:
true

habitatFactory

public abstract Class<? extends HabitatFactory> habitatFactory
Alternative Habitat Factory from the default

Default:
org.jvnet.hk2.component.HabitatFactory.class

inhabitantsParserFactory

public abstract Class<? extends InhabitantsParserFactory> inhabitantsParserFactory
Alternative Inhabitants Parser from the default

Default:
org.jvnet.hk2.component.InhabitantsParserFactory.class

classpathFilter

public abstract Class<? extends FileFilter> classpathFilter
A filter that can be used to optimally select the set of jars (and directories) that contributes to habitat production, filtering out the irrelevant ones. Mostly intended as a performance optimization when used.

Note that while the declaration is generic enough to support any FileFilter, the implementation also supports the use of full ClassPathAdvisor interface.

Default:
java.io.FileFilter.class

module

public abstract Class<? extends Module> module
The Module to automatically include in the habitat.

Default:
org.glassfish.hk2.Module.class


Copyright © 2011 Oracle Corporation. All Rights Reserved.