Annotation ViewPackages

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Retention(value = RetentionPolicy.RUNTIME)@Target(value = ElementType.TYPE)@Documented() 
    public @interface ViewPackages
    
                        

    Annotation to use to scan given packages for routes and error views. Packages can be defined by their fully-qualified name or by providing classes that are members of them. If both classes and packages are empty, the scan is assumed to be limited to the annotated class package.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Array<Class<out Object>> classes() Array of classes whose packages will be scanned for views
      abstract Array<String> packages() Array of packages to scan for views
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • classes

         abstract Array<Class<out Object>> classes()

        Array of classes whose packages will be scanned for views

        Returns:

        Array of classes whose packages will be scanned for views

      • packages

         abstract Array<String> packages()

        Array of packages to scan for views

        Returns:

        String array of packages to scan