org.fusesource.restygwt.rebind
Interface AnnotationResolver

All Known Implementing Classes:
ModelChangeAnnotationResolver

public interface AnnotationResolver

Interface to create Class- and Method-Annotations on RestService Interfaces This allows users of restygwt to give more data to the callback by setting some data on the Method instance. Only Key/Value of String are allowed to use since this logic happens finally on the client. Usecase is to transport those informations, which are only on the interface of a RestService until we reach the final MethodCallback. There we can act those informations, e.g. configure caching, send update events, ...

Author:
andi

Method Summary
 Map<String,String[]> resolveAnnotation(TreeLogger logger, JClassType source, JMethod method, String restMethod)
          resolve a class based annotation
 

Method Detail

resolveAnnotation

Map<String,String[]> resolveAnnotation(TreeLogger logger,
                                       JClassType source,
                                       JMethod method,
                                       String restMethod)
                                       throws UnableToCompleteException
resolve a class based annotation

Parameters:
source -
Returns:
the parameters given to Method.addData(String, String) e.g. returning ``new String[]{"key", "value"}`` will result in ``__method.addData("key", "value")``
Throws:
UnableToCompleteException


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.