Package org.restlet.rebind
Class AnnotationInfo
- java.lang.Object
-
- org.restlet.rebind.AnnotationInfo
-
public class AnnotationInfo extends java.lang.ObjectDescriptor for method annotations.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description AnnotationInfo(Method restletMethod, java.lang.reflect.Method javaMethod, java.lang.String value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>[]getJavaInputTypes()Returns the input types of the Java method.java.lang.reflect.MethodgetJavaMethod()Returns the annotated Java method.java.lang.Class<?>getJavaOutputType()Returns the output type of the Java method.java.util.List<Variant>getRequestVariants(MetadataService metadataService)Returns a list of request variants based on the annotation value.MethodgetRestletMethod()Returns the matching Restlet method.
-
-
-
Constructor Detail
-
AnnotationInfo
public AnnotationInfo(Method restletMethod, java.lang.reflect.Method javaMethod, java.lang.String value)
Constructor.- Parameters:
restletMethod- The matching Restlet method.javaMethod- The annotated Java method.value- The annotation value.
-
-
Method Detail
-
getJavaInputTypes
public java.lang.Class<?>[] getJavaInputTypes()
Returns the input types of the Java method.- Returns:
- The input types of the Java method.
-
getJavaMethod
public java.lang.reflect.Method getJavaMethod()
Returns the annotated Java method.- Returns:
- The annotated Java method.
-
getJavaOutputType
public java.lang.Class<?> getJavaOutputType()
Returns the output type of the Java method.- Returns:
- The output type of the Java method.
-
getRequestVariants
public java.util.List<Variant> getRequestVariants(MetadataService metadataService)
Returns a list of request variants based on the annotation value.- Parameters:
metadataService- The metadata service to use.- Returns:
- A list of response variants.
-
getRestletMethod
public Method getRestletMethod()
Returns the matching Restlet method.- Returns:
- The matching Restlet method.
-
-