开发者

Evaluation of gwt.xml

开发者 https://www.devze.com 2023-02-03 00:40 出处:网络
I\'m new to GWT and trying to understand the role of gwt.xml. The documentation says that one can specify things like <replace-with ... > where you can specify different implementations based on

I'm new to GWT and trying to understand the role of gwt.xml. The documentation says that one can specify things like <replace-with ... > where you can specify different implementations based on, say, the c开发者_Python百科urrent user agent. My question is: who evaluates these rules and when? What part of the execution stack deals with gwt.xml? Can the rules be modified runtime, by the way?


You are talking about deferred-bindings.

  • Compiler evaluates these rules --at compile time of course-- and depending on the parameters, creates or selects a specific implementation. See deferred bindings documentation for more detailed information.
  • Again compiler
  • They cannot be modified at runtime however depending on your use case there a lot of libraries to make things configurable/dynamic at runtime. If you can provide a use case, I am sure we can find something to help you.
0

精彩评论

暂无评论...
验证码 换一张
取 消