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

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

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

GWT.createImpl介绍

[英]Instantiates a class via deferred binding.
[中]通过延迟绑定实例化类。

代码示例

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return com.google.gwt.core.shared.GWT.<T>createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return com.google.gwt.core.shared.GWT.<T>createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return com.google.gwt.core.shared.GWT.<T>createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return createImpl(classLiteral);
}

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

/**
 * Instantiates a class via deferred binding.
 *
 * <p>
 * The argument to {@link #create(Class)}&#160;<i>must</i> be a class literal
 * because the Production Mode compiler must be able to statically determine
 * the requested type at compile-time. This can be tricky because using a
 * {@link Class} variable may appear to work correctly in Development Mode.
 * </p>
 *
 * @param classLiteral a class literal specifying the base class to be
 *          instantiated
 * @return the new instance, which must be cast to the requested class
 */
public static <T> T create(Class<?> classLiteral) {
 /*
  * In Production Mode, the compiler directly replaces calls to this method
  * with a new Object() type expression of the correct rebound type.
  */
 return com.google.gwt.core.shared.GWT.<T>createImpl(classLiteral);
}

相关文章