Annotation Type InhabitantFiles


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(TYPE)
    public @interface InhabitantFiles
    A set of locator inhabitant files to search for in the classpath. This annotation must be placed on a class that extends HK2Runner
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] value
      The name of inhabitant files to find in the classpath of the test.
    • Field Detail

      • DEFAULT_INHABITANT_PATH

        static final java.lang.String DEFAULT_INHABITANT_PATH
    • Element Detail

      • value

        java.lang.String[] value
        The name of inhabitant files to find in the classpath of the test. If this value is an empty set then no inhabitant files will be loaded. The default for this is to search META-INF/hk2-locator/default
        Returns:
        inhabitant file names to find in the classpath for loading into testLocator
        Default:
        {"META-INF/hk2-locator/default"}