org.restlet.rebind
Class AnnotationInfo

java.lang.Object
  extended by org.restlet.rebind.AnnotationInfo

public class AnnotationInfo
extends Object

Descriptor for method annotations.

Author:
Jerome Louvel

Constructor Summary
AnnotationInfo(Method restletMethod, Method javaMethod, String value)
          Constructor.
 
Method Summary
 Class<?>[] getJavaInputTypes()
          Returns the input types of the Java method.
 Method getJavaMethod()
          Returns the annotated Java method.
 Class<?> getJavaOutputType()
          Returns the output type of the Java method.
 List<Variant> getRequestVariants(MetadataService metadataService)
          Returns a list of request variants based on the annotation value.
 Method getRestletMethod()
          Returns the matching Restlet method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationInfo

public AnnotationInfo(Method restletMethod,
                      Method javaMethod,
                      String value)
Constructor.

Parameters:
restletMethod - The matching Restlet method.
javaMethod - The annotated Java method.
value - The annotation value.
Method Detail

getJavaInputTypes

public Class<?>[] getJavaInputTypes()
Returns the input types of the Java method.

Returns:
The input types of the Java method.

getJavaMethod

public Method getJavaMethod()
Returns the annotated Java method.

Returns:
The annotated Java method.

getJavaOutputType

public Class<?> getJavaOutputType()
Returns the output type of the Java method.

Returns:
The output type of the Java method.

getRequestVariants

public 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.


Copyright © 2005-2014 Restlet.