com.google.gwt.core.shared.GWT.setBridge()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中com.google.gwt.core.shared.GWT.setBridge()方法的一些代码示例,展示了GWT.setBridge()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GWT.setBridge()方法的具体详情如下:
包路径:com.google.gwt.core.shared.GWT
类名称:GWT
方法名:setBridge

GWT.setBridge介绍

[英]Called via reflection in Development Mode; do not ever call this method in Production Mode. May be called in server code to initialize server bridge.
[中]在开发模式中通过反射调用;永远不要在生产模式中调用此方法。可以在服务器代码中调用以初始化服务器网桥。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

  1. /**
  2. * Get the singleton {@link ServerGwtBridge} instance, creating it if
  3. * necessary. The instance will be registered via
  4. * {@link GWT#setBridge(GWTBridge)} and will have the default instantiators
  5. * registered on it.
  6. *
  7. * @return the singleton {@link ServerGwtBridge} instance
  8. */
  9. public static ServerGwtBridge getInstance() {
  10. synchronized (instanceLock) {
  11. if (instance == null) {
  12. instance = new ServerGwtBridge();
  13. GWT.setBridge(instance);
  14. }
  15. return instance;
  16. }
  17. }

代码示例来源:origin: com.google.gwt/gwt-servlet

  1. /**
  2. * Called via reflection in Development Mode; do not ever call this method in
  3. * Production Mode.
  4. */
  5. static void setBridge(GWTBridge bridge) {
  6. com.google.gwt.core.shared.GWT.setBridge(bridge);
  7. if (bridge != null) {
  8. setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
  9. }
  10. }

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. /**
  2. * Get the singleton {@link ServerGwtBridge} instance, creating it if
  3. * necessary. The instance will be registered via
  4. * {@link GWT#setBridge(GWTBridge)} and will have the default instantiators
  5. * registered on it.
  6. *
  7. * @return the singleton {@link ServerGwtBridge} instance
  8. */
  9. public static ServerGwtBridge getInstance() {
  10. synchronized (instanceLock) {
  11. if (instance == null) {
  12. instance = new ServerGwtBridge();
  13. GWT.setBridge(instance);
  14. }
  15. return instance;
  16. }
  17. }

代码示例来源:origin: net.wetheinter/gwt-user

  1. /**
  2. * Get the singleton {@link ServerGwtBridge} instance, creating it if
  3. * necessary. The instance will be registered via
  4. * {@link GWT#setBridge(GWTBridge)} and will have the default instantiators
  5. * registered on it.
  6. *
  7. * @return the singleton {@link ServerGwtBridge} instance
  8. */
  9. public static ServerGwtBridge getInstance() {
  10. synchronized (instanceLock) {
  11. if (instance == null) {
  12. instance = new ServerGwtBridge();
  13. GWT.setBridge(instance);
  14. }
  15. return instance;
  16. }
  17. }

代码示例来源:origin: com.google.web.bindery/requestfactory-server

  1. /**
  2. * Called via reflection in Development Mode; do not ever call this method in
  3. * Production Mode.
  4. */
  5. static void setBridge(GWTBridge bridge) {
  6. com.google.gwt.core.shared.GWT.setBridge(bridge);
  7. if (bridge != null) {
  8. setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
  9. }
  10. }

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. /**
  2. * Called via reflection in Development Mode; do not ever call this method in
  3. * Production Mode.
  4. */
  5. static void setBridge(GWTBridge bridge) {
  6. com.google.gwt.core.shared.GWT.setBridge(bridge);
  7. if (bridge != null) {
  8. setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
  9. }
  10. }

代码示例来源:origin: net.wetheinter/gwt-user

  1. /**
  2. * Called via reflection in Development Mode; do not ever call this method in
  3. * Production Mode.
  4. */
  5. static void setBridge(GWTBridge bridge) {
  6. com.google.gwt.core.shared.GWT.setBridge(bridge);
  7. if (bridge != null) {
  8. setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
  9. }
  10. }

相关文章