Annotation Type ModelPathSpec


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface ModelPathSpec
    An annotation that identifies a sequence of model classes that collectively refer to a given resource.
    Author:
    Carl Harris
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<?>[] value
      Sequence of model classes that reference the annotated resource method.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean descriptor
      Flag indicating whether a type annotated with this annotation should be considered a resource descriptor.
      boolean inherit
      Flag indicating whether the type or method annotated with this method inherits model path.
    • Element Detail

      • value

        Class<?>[] value
        Sequence of model classes that reference the annotated resource method.
        Returns:
        array of model classes
      • descriptor

        boolean descriptor
        Flag indicating whether a type annotated with this annotation should be considered a resource descriptor.
        Returns:
        flag value
        Default:
        true
      • inherit

        boolean inherit
        Flag indicating whether the type or method annotated with this method inherits model path. be considered a resource descriptor.
        Returns:
        flag value
        Default:
        true