users@wadl.java.net

Resource class name customization

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Fri, 05 Oct 2007 11:25:27 -0400

Assuming a resource with a URI template like:

    <resource id="CoolResource" path="Foo/{bar}/{burger}">

The generated class is:

    FooBarBurger(String bar, String burger)

This is a little awkward and counterintuitive.

Perhaps the spec should say that if an id is specified for a resource
then the generated resource class will be based on the id of the
resource rather than its path.

This would allow above resource to have a generated class of: CoolResource

Would this be desirable?

-- 
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com