org.fusesource.restygwt.rebind
Class ModelChangeAnnotationResolver
java.lang.Object
org.fusesource.restygwt.rebind.ModelChangeAnnotationResolver
- All Implemented Interfaces:
- AnnotationResolver
public class ModelChangeAnnotationResolver
- extends Object
- implements AnnotationResolver
Implementation for an annotationparser which is responsible to put
annotation-data from ModelChange annotations to Method instances.
This class transports information about ModelChangeEvents to be triggered,
when some servicemethods have been called.
- Author:
- andi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelChangeAnnotationResolver
public ModelChangeAnnotationResolver()
resolveAnnotation
public Map<String,String[]> resolveAnnotation(TreeLogger logger,
JClassType source,
JMethod method,
String restMethod)
throws UnableToCompleteException
- Description copied from interface:
AnnotationResolver
- resolve a class based annotation
- Specified by:
resolveAnnotation in interface AnnotationResolver
- 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.