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

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

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

Wrapper.load介绍

[英]Load and initialize an instance of this servlet, if there is not already at least one initialized instance. This can be used, for example, to load servlets that are marked in the deployment descriptor to be loaded at server startup time.
[中]如果还没有至少一个已初始化的实例,则加载并初始化该servlet的实例。例如,这可以用来加载在部署描述符中标记的servlet,以便在服务器启动时加载。

代码示例

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

private void load(Wrapper wrapper) {
  try {
    wrapper.load();
  }
  catch (ServletException ex) {
    String message = sm.getString("standardContext.loadOnStartup.loadException",
        getName(), wrapper.getName());
    if (getComputedFailCtxIfServletStartFails()) {
      throw new WebServerException(message, ex);
    }
    getLogger().error(message, StandardWrapper.getRootCause(ex));
  }
}

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

Wrapper wrapper = (Wrapper) wrappers.next();
try {
  wrapper.load();
} catch (ServletException e) {
  getLogger().error(sm.getString("standardWrapper.loadException",

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

Wrapper wrapper = (Wrapper) wrappers.next();
try {
  wrapper.load();
} catch (ServletException e) {
  getLogger().error(sm.getString("standardWrapper.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardWrapper.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardWrapper.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardWrapper.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardWrapper.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardWrapper.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardWrapper.loadException",

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

for(Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch(ServletException e) {
    String msg = MessageFormat.format(rb.getString(LogFacade.SERVLET_LOAD_EXCEPTION), neutralizeForLog(getName()));

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

String servletClass = wrapper.getServletClass();
  lifecycle.fireLifecycleEvent(Lifecycle.BEFORE_LOAD_ON_STARTUP_EVENT, servletClass);
  wrapper.load();
  lifecycle.fireLifecycleEvent(Lifecycle.AFTER_LOAD_ON_STARTUP_EVENT, servletClass);
} catch (ServletException e) {

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardContext.loadOnStartup.loadException",

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

for (Wrapper wrapper : list) {
  try {
    wrapper.load();
  } catch (ServletException e) {
    getLogger().error(sm.getString("standardContext.loadOnStartup.loadException",

代码示例来源:origin: org.apache.openejb/tomee-webservices

wrapper.load();
wrapper.unload();

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

wrapper.setServletClass(WsServlet.class.getName());
if (getServlet(wrapper) != null) {
  wrapper.load();
  wrapper.unload();

相关文章