Hi Matthieu,
How will you determine from a business process what the URIs, HTTP
methods and representations for resources of that process are?
One way this can be done is for the business processes to provide
resource classes themselves are returned by a sub-resource locator of
a root resource (such classes are analyzed at runtime). It is also
possible to dynamically reload root resource classes.
If there is a common pattern to all business process you can write
general resource classes with careful use of URI templates e.g.
@Path("{id}"}
Paul.
On Oct 15, 2008, at 5:13 PM, Matthieu Riou wrote:
> Hi,
>
> I have a need to create resources dynamically instead of having
> predefined static classes. The use case is I'm implementing a server
> where users can deploy business processes. Those should be exposed
> using a RESTful web service. But of course I don't know beforehand
> the resource address or even how many resources I'm going to have.
>
> Is there an API in Jersey that I could use to handle this use case?
>
> Thanks,
> Matthieu