Annotation Interface NamedResource


@Retention(RUNTIME) @Target({TYPE,FIELD,METHOD}) public @interface NamedResource
Marks a POJO class, a field, or a method as a named resource. Named resources can be annotated with @AccessRequired annotations for declarative authorization.
Author:
tjquinn
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
    can appear as a top-level resource (if singleton) or in an implied top-level collection (if not a singleton)
    overides the default collection name for named resources of this type
  • Element Details

    • isPrimary

      boolean isPrimary
      can appear as a top-level resource (if singleton) or in an implied top-level collection (if not a singleton)
      Default:
      false
    • subpath

      String subpath
      overides the default collection name for named resources of this type
      Default:
      "?"
    • collectionName

      String collectionName
      Default:
      ""