org.atmosphere.util.Version类的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(126)

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

Version介绍

[英]Class contains information about Atmosphere framework
[中]类包含有关大气框架的信息

代码示例

代码示例来源:origin: Atmosphere/atmosphere

String newVersion = Version.getRawVersion();
String clientVersion = null;
String nextMajorRelease = null;
      } else if (inputLine.startsWith("ATMO_RELEASE_VERSION=")) {
        nextMajorRelease = inputLine.substring("ATMO_RELEASE_VERSION=".length());
        if (nextMajorRelease.compareTo(Version.getRawVersion()) > 0
            && nextMajorRelease.toLowerCase().indexOf("rc") == -1
            && nextMajorRelease.toLowerCase().indexOf("beta") == -1) {
      logger.info("Latest version of Atmosphere's JavaScript Client {}", clientVersion);
    if (newVersion.compareTo(Version.getRawVersion()) > 0) {
      if (nextAvailable) {
        logger.info("\n\n\tAtmosphere Framework Updates\n\tMinor available (bugs fixes): {}\n\tMajor available (new features): {}", newVersion, nextMajorRelease);
JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker(ModuleDetection.detect(), Version.getRawVersion(), "UA-31990725-1");
tracker.trackSynchronously(new FocusPoint(container, new FocusPoint("Atmosphere")));

代码示例来源:origin: Atmosphere/atmosphere

public static void main(String[] args) {
  System.out.println(Version.getDotedVersion());
}

代码示例来源:origin: org.apache.wicket.experimental.wicket8/wicket-atmosphere

private void checkEnabledAnalytics(AtmosphereConfig config)
{
  int major = Version.getMajorVersion();
  int minor = Version.getMinorVersion();
  boolean analyticsAlwaysEnabled = major == 2 && minor < 3;
  boolean analyticsOption =
      config.getInitParameter(AtmosphereFramework.class.getName() + ".analytics", true);
  if (analyticsAlwaysEnabled || analyticsOption)
  {
    log.warn("Atmosphere's Google Analytics callback is enabled. Atmosphere will contact "
        + "Google Analytics on startup of your application. To disable this, upgrade "
        + "to Atmosphere 2.3 and disable ApplicationConfig.ANALYTICS in your web.xml");
  }
}

代码示例来源:origin: Atmosphere/atmosphere

logger.info("Atmosphere is using async support: {} running under container: {}",
    getAsyncSupport().getClass().getName(), asyncSupport.getContainerName());
logger.info("Atmosphere Framework {} started.", Version.getRawVersion());

代码示例来源:origin: com.vaadin/vaadin-server

public static String getAtmosphereVersion() {
  try {
    String v = Version.getRawVersion();
    assert v != null;
    return v;
  } catch (NoClassDefFoundError e) {
    return null;
  }
}

代码示例来源:origin: com.vaadin/flow-server

/**
 * Gets the Atmosphere version in use, as reported by
 * {@link Version#getRawVersion()}.
 *
 * @return the Atmosphere version in use or null if Atmosphere was not found
 */
public static String getAtmosphereVersion() {
  try {
    String v = Version.getRawVersion();
    assert v != null;
    return v;
  } catch (NoClassDefFoundError e) {
    return null;
  }
}

代码示例来源:origin: com.vaadin/hummingbird-server

/**
 * Gets the Atmosphere version in use, as reported by
 * {@link Version#getRawVersion()}.
 *
 * @return the Atmosphere version in use or null if Atmosphere was not found
 */
public static String getAtmosphereVersion() {
  try {
    String v = Version.getRawVersion();
    assert v != null;
    return v;
  } catch (NoClassDefFoundError e) {
    return null;
  }
}

代码示例来源:origin: com.wordnik/swaggersocket

@Override
  public void init(ServletConfig sc) throws ServletException {
    super.init(sc);
    logger.info("Swagger Socket installed {}", Version.getRawVersion());
  }
}

代码示例来源:origin: swagger-api/swagger-socket

@Override
  public void init(ServletConfig sc) throws ServletException {
    super.init(sc);
    TrackMessageSizeInterceptor t = new TrackMessageSizeInterceptor();
    t.excludedContentType("application/javascript").excludedContentType("text/html").excludedContentType("text/plain").messageDelimiter("<->");
    t.configure(framework().getAtmosphereConfig());
    framework().interceptor(t);
    framework().interceptor(new SwaggerSocketProtocolInterceptor());
    logger.info("Swagger Socket installed {}", Version.getRawVersion());
  }
}

相关文章