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

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

本文整理了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

/**
 * Get the singleton {@link ServerGwtBridge} instance, creating it if
 * necessary.  The instance will be registered via
 * {@link GWT#setBridge(GWTBridge)} and will have the default instantiators
 * registered on it.
 *  
 * @return the singleton {@link ServerGwtBridge} instance
 */
public static ServerGwtBridge getInstance() {
 synchronized (instanceLock) {
  if (instance == null) {
   instance = new ServerGwtBridge();
   GWT.setBridge(instance);
  }
  return instance;
 }
}

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

/**
 * Called via reflection in Development Mode; do not ever call this method in
 * Production Mode.
 */
static void setBridge(GWTBridge bridge) {
 com.google.gwt.core.shared.GWT.setBridge(bridge);
 if (bridge != null) {
  setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
 }
}

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

/**
 * Get the singleton {@link ServerGwtBridge} instance, creating it if
 * necessary.  The instance will be registered via
 * {@link GWT#setBridge(GWTBridge)} and will have the default instantiators
 * registered on it.
 *  
 * @return the singleton {@link ServerGwtBridge} instance
 */
public static ServerGwtBridge getInstance() {
 synchronized (instanceLock) {
  if (instance == null) {
   instance = new ServerGwtBridge();
   GWT.setBridge(instance);
  }
  return instance;
 }
}

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

/**
 * Get the singleton {@link ServerGwtBridge} instance, creating it if
 * necessary.  The instance will be registered via
 * {@link GWT#setBridge(GWTBridge)} and will have the default instantiators
 * registered on it.
 *  
 * @return the singleton {@link ServerGwtBridge} instance
 */
public static ServerGwtBridge getInstance() {
 synchronized (instanceLock) {
  if (instance == null) {
   instance = new ServerGwtBridge();
   GWT.setBridge(instance);
  }
  return instance;
 }
}

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

/**
 * Called via reflection in Development Mode; do not ever call this method in
 * Production Mode.
 */
static void setBridge(GWTBridge bridge) {
 com.google.gwt.core.shared.GWT.setBridge(bridge);
 if (bridge != null) {
  setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
 }
}

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

/**
 * Called via reflection in Development Mode; do not ever call this method in
 * Production Mode.
 */
static void setBridge(GWTBridge bridge) {
 com.google.gwt.core.shared.GWT.setBridge(bridge);
 if (bridge != null) {
  setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
 }
}

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

/**
 * Called via reflection in Development Mode; do not ever call this method in
 * Production Mode.
 */
static void setBridge(GWTBridge bridge) {
 com.google.gwt.core.shared.GWT.setBridge(bridge);
 if (bridge != null) {
  setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
 }
}

相关文章