org.apache.catalina.startup.Tomcat.initBaseDir()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(136)

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

Tomcat.initBaseDir介绍

暂无

代码示例

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.
 * @return The Server
 */
public Server getServer() {
  if (server != null) {
    return server;
  }
  System.setProperty("catalina.useNaming", "false");
  server = new StandardServer();
  initBaseDir();
  // Set configuration source
  ConfigFileLoader.setSource(new CatalinaBaseConfigurationSource(new File(basedir), null));
  server.setPort( -1 );
  Service service = new StandardService();
  service.setName("Tomcat");
  server.addService(service);
  return server;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.  
 */
public Server getServer() {
  
  if (server != null) {
    return server;
  }
  
  initBaseDir(); 
  
  System.setProperty("catalina.useNaming", "false");
  
  server = new StandardServer();
  server.setPort( -1 );
  
  service = new StandardService();
  service.setName("Tomcat");
  server.addService( service );
  return server;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.  
 */
public Server getServer() {
  
  if (server != null) {
    return server;
  }
  
  initBaseDir(); 
  
  System.setProperty("catalina.useNaming", "false");
  
  server = new StandardServer();
  server.setPort( -1 );
  
  service = new StandardService();
  service.setName("Tomcat");
  server.addService( service );
  return server;
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.
 */
public Server getServer() {
  if (server != null) {
    return server;
  }
  System.setProperty("catalina.useNaming", "false");
  server = new StandardServer();
  initBaseDir();
  server.setPort( -1 );
  service = new StandardService();
  service.setName("Tomcat");
  server.addService( service );
  return server;
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.  
 */
public Server getServer() {
  
  if (server != null) {
    return server;
  }
  
  initBaseDir(); 
  
  System.setProperty("catalina.useNaming", "false");
  
  server = new StandardServer();
  server.setPort( -1 );
  
  service = new StandardService();
  service.setName("Tomcat");
  server.addService( service );
  return server;
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.  
 */
public Server getServer() {
  
  if (server != null) {
    return server;
  }
  
  initBaseDir(); 
  
  System.setProperty("catalina.useNaming", "false");
  
  server = new StandardServer();
  server.setPort( -1 );
  
  service = new StandardService();
  service.setName("Tomcat");
  server.addService( service );
  return server;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.  
 */
public Server getServer() {
  
  if (server != null) {
    return server;
  }
  
  initBaseDir(); 
  
  System.setProperty("catalina.useNaming", "false");
  
  server = new StandardServer();
  server.setPort( -1 );
  
  service = new StandardService();
  service.setName("Tomcat");
  server.addService( service );
  return server;
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Get the server object. You can add listeners and few more
 * customizations. JNDI is disabled by default.
 * @return The Server
 */
public Server getServer() {
  if (server != null) {
    return server;
  }
  System.setProperty("catalina.useNaming", "false");
  server = new StandardServer();
  initBaseDir();
  server.setPort( -1 );
  Service service = new StandardService();
  service.setName("Tomcat");
  server.addService(service);
  return server;
}

相关文章