Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.
This repository was archived by the owner on May 28, 2018. It is now read-only.

Declarative linking should use uriInfo to fill Links #3135

@glassfishrobot

Description

@glassfishrobot

Right now, all parameters of the resource have to be defined in the Bindings of the @InjectLink annotation. It comes with 2 issues :

  • It assumes all parameters can be retrieved through instance/entity/resource. This may not always be the case
  • It forces to redeclare in Bindings what is already present in uriInfo which is a burden and makes the annotation declaration big and hard to maintain when you have a lot of parameters.

The fix would be to get the pathParameters and queryParameters and add them by default to the list of values. Those values can be overridden if the name is set in one of the Bindings

Affected Versions

[2.17]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions