org.h2.server.web.WebServer.loadProperties()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(130)

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

WebServer.loadProperties介绍

暂无

代码示例

代码示例来源:origin: com.h2database/h2

ArrayList<ConnectionInfo> settings = New.arrayList();
if (connInfoMap.size() == 0) {
  Properties prop = loadProperties();
  if (prop.size() == 0) {
    for (String gen : GENERIC) {

代码示例来源:origin: com.h2database/h2

try {
  if (prop == null) {
    Properties old = loadProperties();
    prop = new SortedProperties();
    prop.setProperty("webPort",

代码示例来源:origin: com.h2database/h2

Properties prop = loadProperties();
port = SortedProperties.getIntProperty(prop,
    "webPort", Constants.DEFAULT_HTTP_PORT);

代码示例来源:origin: com.h2database/com.springsource.org.h2

synchronized ArrayList getSettings() {
  ArrayList settings = new ArrayList();
  if (connInfoMap.size() == 0) {
    Properties prop = loadProperties();
    if (prop.size() == 0) {
      for (int i = 0; i < GENERIC.length; i++) {
        ConnectionInfo info = new ConnectionInfo(GENERIC[i]);
        settings.add(info);
        updateSetting(info);
      }
    } else {
      for (int i = 0;; i++) {
        String data = prop.getProperty(String.valueOf(i));
        if (data == null) {
          break;
        }
        ConnectionInfo info = new ConnectionInfo(data);
        settings.add(info);
        updateSetting(info);
      }
    }
  } else {
    settings.addAll(connInfoMap.values());
  }
  sortConnectionInfo(settings);
  return settings;
}

代码示例来源:origin: com.eventsourcing/h2

ArrayList<ConnectionInfo> settings = New.arrayList();
if (connInfoMap.size() == 0) {
  Properties prop = loadProperties();
  if (prop.size() == 0) {
    for (String gen : GENERIC) {

代码示例来源:origin: org.wowtools/h2

ArrayList<ConnectionInfo> settings = New.arrayList();
if (connInfoMap.size() == 0) {
  Properties prop = loadProperties();
  if (prop.size() == 0) {
    for (String gen : GENERIC) {

代码示例来源:origin: com.eventsourcing/h2

try {
  if (prop == null) {
    Properties old = loadProperties();
    prop = new SortedProperties();
    prop.setProperty("webPort",

代码示例来源:origin: org.wowtools/h2

try {
  if (prop == null) {
    Properties old = loadProperties();
    prop = new SortedProperties();
    prop.setProperty("webPort",

代码示例来源:origin: com.h2database/com.springsource.org.h2

public void init(String[] args) throws Exception {
  Properties prop = loadProperties();
  driverList = prop.getProperty("drivers");
  port = FileUtils.getIntProperty(prop, "webPort", Constants.DEFAULT_HTTP_PORT);

代码示例来源:origin: org.wowtools/h2

Properties prop = loadProperties();
port = SortedProperties.getIntProperty(prop,
    "webPort", Constants.DEFAULT_HTTP_PORT);

代码示例来源:origin: com.eventsourcing/h2

Properties prop = loadProperties();
port = SortedProperties.getIntProperty(prop,
    "webPort", Constants.DEFAULT_HTTP_PORT);

相关文章