Say I have a custom annotation that looks like the following:
-- @Retention(RetentionPolicy.RUNTIME)@Target(ElementType.TYPE)
@Componentpublic @interface MyComponent {String value() default "";}
A class that is annotated as follows:
@MyComponentprivate static class TestClass {}
And in the generator I am trying to find if the TestClass has the annotation @Component
if(clazz.isAnnotationPresent(Component.class))return clazz.getAnnotation(Component.class);
However this doesn't work in GWT.
The question is should this work????
Or do I have to create an abstract class and use @inheritance for this to work???
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment