io.netty.util.Version.identify()方法的使用及代码示例

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

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

Version.identify介绍

[英]Retrieves the version information of Netty artifacts using the current Thread#getContextClassLoader().
[中]使用当前线程#getContextClassLoader()检索Netty工件的版本信息。

代码示例

代码示例来源:origin: netty/netty

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: redisson/redisson

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: netty/netty

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: wildfly/wildfly

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: redisson/redisson

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: wildfly/wildfly

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: io.netty/netty-common

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: io.netty/netty-common

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: apache/activemq-artemis

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Retrieves the version information of Netty artifacts using the current
 * {@linkplain Thread#getContextClassLoader() context class loader}.
 *
 * @return A {@link Map} whose keys are Maven artifact IDs and whose values are {@link Version}s
 */
public static Map<String, Version> identify() {
  return identify(null);
}

代码示例来源:origin: apache/cxf

public NettyHttpDestinationFactory() {
  io.netty.util.Version.identify();
}

代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http-netty-server

public NettyHttpDestinationFactory() {
  io.netty.util.Version.identify();
}

代码示例来源:origin: apache/activemq-artemis

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

/**
 * Prints the version information to {@link System#err}.
 */
public static void main(String[] args) {
  for (Version v: identify().values()) {
    System.err.println(v);
  }
}

代码示例来源:origin: apache/cxf

public NettyHttpConduitFactory() {
  io.netty.util.Version.identify();
  Object st = SystemPropertyAction.getPropertyOrNull(USE_POLICY);
  policy = UseAsyncPolicy.getPolicy(st);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http-netty-client

public NettyHttpConduitFactory() {
  io.netty.util.Version.identify();
  Object st = SystemPropertyAction.getPropertyOrNull(USE_POLICY);
  policy = UseAsyncPolicy.getPolicy(st);
}

代码示例来源:origin: com.strapdata.cassandra/cassandra-all

logger.info("Using Netty Version: {}", Version.identify().entrySet());
logger.info("Starting listening for CQL clients on {} ({})...", socket, this.useSSL ? "encrypted" : "unencrypted");

代码示例来源:origin: org.apache.cassandra/cassandra-all

logger.info("Using Netty Version: {}", Version.identify().entrySet());
logger.info("Starting listening for CQL clients on {} ({})...", socket, this.useSSL ? "encrypted" : "unencrypted");

相关文章