org.mortbay.jetty.webapp.WebAppContext.setEventListeners()方法的使用及代码示例

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

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

WebAppContext.setEventListeners介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.hudson/hudson-test-framework

public void configureWebApp() throws Exception {
  context.setEventListeners(null);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-framework

public void configureWebApp() throws Exception {
  context.setEventListeners(null);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-test-harness

public void configureWebApp() throws Exception {
  context.setEventListeners(null);
}

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

/** Add EventListener
 * Conveniance method that calls {@link #setEventListeners(EventListener[])}
 * @param listener
 */
public void addEventListener(EventListener listener)
{
  setEventListeners((EventListener[])LazyList.addToArray(getEventListeners(), listener, EventListener.class));   
}

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

public void deconfigureWebApp() throws Exception
{
  // TODO preserve any configuration that pre-existed.
  _servletHandler = getWebAppContext().getServletHandler();
  _servletHandler.setFilters(null);
  _servletHandler.setFilterMappings(null);
  _servletHandler.setServlets(null);
  _servletHandler.setServletMappings(null);
  getWebAppContext().setEventListeners(null);
  getWebAppContext().setWelcomeFiles(null);
  if (getWebAppContext().getSecurityHandler() != null)
    getWebAppContext().getSecurityHandler().setConstraintMappings(null);
  if (getWebAppContext().getErrorHandler() instanceof ErrorPageErrorHandler)
    ((ErrorPageErrorHandler)getWebAppContext().getErrorHandler()).setErrorPages(null);
  // TODO remove classpaths from classloader
}

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

_servletHandler.setServletMappings((ServletMapping[])LazyList.toArray(_servletMappings,ServletMapping.class));
getWebAppContext().setEventListeners((EventListener[])LazyList.toArray(_listeners,EventListener.class));
getWebAppContext().setWelcomeFiles((String[])LazyList.toArray(_welcomeFiles,String.class));
getWebAppContext().getSecurityHandler().setConstraintMappings((ConstraintMapping[])LazyList.toArray(_constraintMappings, ConstraintMapping.class));

代码示例来源:origin: org.mortbay.jetty/jetty-annotations

_servletHandler.setServlets((ServletHolder[])LazyList.toArray(_servlets,ServletHolder.class));
_servletHandler.setServletMappings((ServletMapping[])LazyList.toArray(_servletMappings,ServletMapping.class));
getWebAppContext().setEventListeners((EventListener[])LazyList.toArray(_listeners,EventListener.class));

相关文章

WebAppContext类方法