Linkable (Grails 6.0.0)

Package: grails.rest

## [Groovy] Annotation Type Linkable

- grails.rest.Linkable

- All Implemented Interfaces and Traits:
    java.lang.annotation.Annotation

      @java.lang.annotation.Retention(value: RetentionPolicy.SOURCE)
      @java.lang.annotation.Target(value: [ElementType.TYPE])
      @org.codehaus.groovy.transform.GroovyASTTransformationClass(value: org.grails.plugins.web.rest.transform.LinkableTransform)
      @interface Linkable

  A transform that makes it possible to attach Link instances to any class. Two methods are added, one called link(Map args) and another called links() to retrieve the links. Example:

           Linkable:class Book {
                    String title
                }

                def b = new Book()
                b.link(rel:"publisher", href="http://foo.com/books")
                println b.links()

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`