I have a method that takes a DataResource as a parameter and I want to
force all incoming DataResources to have the @DoNotEmbed annotation,
just like ResourcePrototype (Which all Resources, such as
DataResource, extend) forces the @Source annotation.

Can anyone help me understand how to do this? I'm no pro at
annotations but I've researched it for a several hours and I cannot
find a way. I also cannot see how GWT forces the @Source.

I obviously don't want to force @DoNotEmbed on ALL DataResources, so I
figure I could have an interface extend DataResource and that the
compiler Processor would somehow only check if a MyDataResource method
has been annotated with @DoNotEmbed. The problem seems to be that it's
the METHOD inside the ClientBundle that is being annotated and not any
class. There doesn't seem to be any way to get the compiler to have an
annotation Processor (javax.annotation.processing.Processor) that
looks at methods being annotated and allows me to check if the method
has a specific annotation or not.

Any help would be greatly appreciated!

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to