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

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

      • 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:
        ""