com.sun.jersey.server.linking
Annotation Type Binding


@Target(value={})
@Retention(value=RUNTIME)
public @interface Binding

Specifies the binding between a URI template parameter and a bean property.

See Also:
Link#bindings()

Required Element Summary
 String name
          Specifies the name of the URI template parameter.
 String value
          Specifies the value of a URI template parameter.
 

Element Detail

name

public abstract String name
Specifies the name of the URI template parameter.


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.



Copyright © 2013 Oracle Corporation. All Rights Reserved.