org.glassfish.jersey.linking
Annotation Type Binding


@Target(value={})
@Retention(value=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:
Link#bindings()

Required Element Summary
 String value
          Specifies the value of a URI template parameter.
 
Optional Element Summary
 String name
          Specifies the name of the URI template parameter, defaults to "value" for convenience.
 

Element Detail

value

public abstract 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 Link 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 Link annotation.

name

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

Default:
"value"


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.