org.jboss.resteasy.spi.touri
Annotation Type MappedBy


@Target(value=TYPE)
@Retention(value=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
 }

Version:
$Revision: 1 $
Author:
Solomon Duskis

Required Element Summary
 java.lang.Class<?> resource
           
 
Optional Element Summary
 java.lang.String method
           
 

Element Detail

resource

public abstract java.lang.Class<?> resource

method

public abstract java.lang.String method
Default:
""


Copyright © 2009. All Rights Reserved.