com.google.code.facebookapi
Annotation Type FacebookReturnType
@Target(value=METHOD)
public @interface FacebookReturnType
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.
|
Optional Element Summary |
java.lang.Class<?> |
JAXB
|
java.lang.Class<?> |
JAXBList
|
java.lang.Class<?> |
JSON
|
JSON
public abstract java.lang.Class<?> JSON
- Default:
- java.lang.Object.class
JAXB
public abstract java.lang.Class<?> JAXB
- Default:
- java.lang.Object.class
JAXBList
public abstract java.lang.Class<?> JAXBList
- Default:
- java.lang.Object.class
Copyright © 2010. All Rights Reserved.