Annotation Interface Packages


@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Packages
The list of packages (in "." format, i.e. "com.acme.test.services") that we should scan through the classpath for in order to find services. This annotation must be placed on a class that extends HK2Runner
Author:
jwells
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the set of packages (with dot separator) that should be scanned for hk2 services.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    This special value indicates the same package as the package in which the test itself resides
  • Field Details

    • THIS_PACKAGE

      static final String THIS_PACKAGE
      This special value indicates the same package as the package in which the test itself resides
      See Also:
  • Element Details

    • value

      String[] value
      Returns the set of packages (with dot separator) that should be scanned for hk2 services. The default value for this is to scan the package in which the test class itself resides
      Returns:
      The set of packages to scan for services
      Default:
      {"${THIS}"}