Annotation Type 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
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String THIS_PACKAGE
      This special value indicates the same package as the package in which the test itself resides
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] value
      Returns the set of packages (with dot separator) that should be scanned for hk2 services.
    • Field Detail

      • THIS_PACKAGE

        static final java.lang.String THIS_PACKAGE
        This special value indicates the same package as the package in which the test itself resides
    • Element Detail

      • value

        java.lang.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}"}