/facebook-java-api/src/main/java/com/google/code/facebookapi/FacebookReturnType.java
http://facebook-java-api.googlecode.com/ · Java · 24 lines · 9 code · 6 blank · 9 comment · 0 complexity · 47af2c15da4e9fc8622973295ee8dbe5 MD5 · raw file
- package com.google.code.facebookapi;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Target;
- /**
- * Used in the IFacebookRestClient interface to tie together the method call (e.g. friends_get) and its return type.
- *
- * Facebook provides a human readable description of the API and an XSD schema of the response formats. Without a WADL descriptor for the service, these two concepts
- * aren't tied together. So, the Java API needs to tie the requests and expected response types together using this annotation.
- *
- * The information specified helps to produce annotation-generated files FacebookXXXRestClient.java for Xml, Json and Jaxb. This annotation allows all the return types to
- * be specified in IFacebookRestClient rather than scattered across the concrete adapter .java files.
- */
- @Target(ElementType.METHOD)
- public @interface FacebookReturnType {
- Class<?> JSON() default Object.class;
- Class<?> JAXB() default Object.class;
- Class<?> JAXBList() default Object.class;
- }