Hi,
I know GWT can generate Java source code with deferred binding. But
sometimes, I don't want to generate a new implementation, but based on some
annotations, I want to have the ability of injecting code at compile time.
e.g., with the class below
public class Foo {
@Log
public void bar() {
@CheckPermission
dosomething();
}
}
At compile time, I want to have the ability to get the annotations available
on items, and inject code according to my application logic. So here, the
compiler should see:
public class Foo {
public void bar() {
log("begin");
if (hasPermission()) {
doSomething();
} else {
error();
}
}
}
with the extra code being injected. I'm wondering if anything in GWT allows
me to do that?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.