Package org.jboss.resteasy.spi.touri

## Annotation Type MappedBy

-     @Target(TYPE)
      @Retention(RUNTIME)
      public @interface MappedBy

  This annotation can be added to any object to perform a Resource/method based lookup to create a URI template. From there, perform Java beans-based transformation between URI template and bean properties. For example, take the following bean:

       MappedBy(Resource=FooResource.class, method="getFoo")
       public class Foo
       {
        private int id;
        // getters and setters
       }

       @Path("/foo")public class FooResource {
       @GET
       @Path("{id}")
       @Produces(...) public Foo getFoo(@PathParam("id") Integer id){
       ...
       }
       }

  for a Foo f with id = 123, ObjectToURI.getInstance(f) = "/foo/123"

  Version:
    $Revision: 1 $
  Author:
    Solomon Duskis

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element | Description
    --- | --- | ---
    `Class<?>` | `resource` |

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `String` | `method` |

- - ### Element Detail

    - #### resource

          Class<?> resource

  - - #### method

          String method

      Default:
        ""