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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章