Annotation Interface Binding


@Target({}) @Retention(RUNTIME) @Beta public @interface Binding
Specifies the binding between a URI template parameter and a bean property.
Author:
Mark Hadley, Gerard Davison (gerard.davison at oracle.com)
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the value of a URI template parameter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the name of the URI template parameter, defaults to "value" for convenience.
  • Element Details

    • value

      String value
      Specifies the value of a URI template parameter. The value is an EL expression using immediate evaluation syntax. E.g.:
      ${instance.widgetId}
      In the above example the value is taken from the widgetId property of the implicit instance bean.

      Three implicit beans are supported:

      instance
      The object whose class contains the InjectLink annotation.
      entity
      The entity returned by the resource class method. This is either the resource method return value or the entity property for a resource method that returns Response.
      resource
      The resource class instance that returned the object that contains the InjectLink annotation.
    • name

      String name
      Specifies the name of the URI template parameter, defaults to "value" for convenience.
      Default:
      "value"