On Oct 6, 2009, at 2:51 PM, Paul Sandoz wrote:
>
> public class MyResource implements Linkable {
> // Linkable iface
> Links getLinks() { ... }
>
> @GET
> Linkable<MyBean> get() {
> MyBean b = ...
> return new Linkable<MyBean>(b)
> }
> }
>
That should be something like :
public class MyResource implements LinkResolver {
// LinkResolver iface
Links getLinks() { ... }
@GET
Linkable<MyBean> get() {
MyBean b = ...
return new Linkable<MyBean>(b)
}
}
where the MBW for Linkable can obtain the instance of LinkResolver
from UriInfo.getMatchedResources.
Paul.