users@jersey.java.net

[Jersey] How to configure a _at_Path resource

From: <Chris.Rowland_at_sungard.com>
Date: Mon, 9 May 2011 13:51:39 -0400

I just started playing around with Jersey, and I tried to find this in the documentation, but I haven’t seen it so far.

 

I’m curious what the correct way to configure a @Path annotated resource is.

 

Basically I want to inject an implementation of an interface at runtime… something like this:

 

@Path(“/foo”)

Public class Foo {

  public void setHandler(IHandler h) {