org.apache.catalina.Wrapper.getLoadOnStartup()方法的使用及代码示例

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

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

Wrapper.getLoadOnStartup介绍

[英]Return the load-on-startup order value (negative value means load on first call).
[中]返回启动时加载顺序值(负值表示第一次调用时加载)。

代码示例

代码示例来源:origin: org.springframework.boot/spring-boot

private Stream<Wrapper> getLoadOnStartupWrappers(Container[] children) {
  Map<Integer, List<Wrapper>> grouped = new TreeMap<>();
  for (Container child : children) {
    Wrapper wrapper = (Wrapper) child;
    int order = wrapper.getLoadOnStartup();
    if (order >= 0) {
      grouped.computeIfAbsent(order, ArrayList::new);
      grouped.get(order).add(wrapper);
    }
  }
  return grouped.values().stream().flatMap(List::stream);
}

代码示例来源:origin: psi-probe/psi-probe

si.setServletClass(wrapper.getServletClass());
si.setAvailable(!wrapper.isUnavailable());
si.setLoadOnStartup(wrapper.getLoadOnStartup());
si.setRunAs(wrapper.getRunAs());
si.getMappings().addAll(Arrays.asList(wrapper.findMappings()));

代码示例来源:origin: tomcat/catalina

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

代码示例来源:origin: jboss.web/jbossweb

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

代码示例来源:origin: org.glassfish.main.web/web-core

for (Container aChildren : children) {
  Wrapper wrapper = (Wrapper)aChildren;
  int loadOnStartup = wrapper.getLoadOnStartup();
  if(loadOnStartup < 0) {
    continue;

代码示例来源:origin: org.jboss.web/jbossweb

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

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

for (int i = 0; i < children.length; i++) {
  Wrapper wrapper = (Wrapper) children[i];
  int loadOnStartup = wrapper.getLoadOnStartup();
  if (loadOnStartup < 0)
    continue;

相关文章