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

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

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

WebAppContext.addEventListener介绍

[英]Add EventListener Convenience method that calls #setEventListeners(EventListener[])
[中]添加调用#SetEventListener(EventListener[])的EventListener便利方法

代码示例

代码示例来源:origin: jamesagnew/hapi-fhir

root.setParentLoaderPriority(true);
root.setContextPath("/");
root.addEventListener(new ServletContextListener() {
  @Override
  public void contextInitialized(ServletContextEvent theSce) {

代码示例来源:origin: nutzam/nutzboot

private void addNutzSupport() {
  wac.addEventListener(ioc.get(NbServletContextListener.class));
}

代码示例来源:origin: kumuluz/kumuluzee

@Override
public void registerListener(EventListener listener) {
  if (server == null)
    throw new IllegalStateException("Jetty has to be initialized before adding a listener");
  if (server.isStarted() || server.isStarting())
    throw new IllegalStateException("Jetty cannot be started before adding a listener");
  appContext.addEventListener(listener);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

@Override
public void preConfigure(WebAppContext context) throws Exception
{
  try
  {
    Class<?> jsp_page = Loader.loadClass(WebXmlConfiguration.class,"javax.servlet.jsp.JspPage");
  }
  catch (Exception e)
  {
    //no jsp available, don't parse TLDs
    return;
  }
  TagLibListener tagLibListener = new TagLibListener(context);
  context.addEventListener(tagLibListener);
}

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

@Override
public void preConfigure(WebAppContext context) throws Exception
{
  try
  {
    Class<?> jsp_page = Loader.loadClass(WebXmlConfiguration.class,"javax.servlet.jsp.JspPage");
  }
  catch (Exception e)
  {
    //no jsp available, don't parse TLDs
    return;
  }
  TagLibListener tagLibListener = new TagLibListener(context);
  context.addEventListener(tagLibListener);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

@Override
public void preConfigure(WebAppContext context) throws Exception
{
  try
  {
    Class<?> jsp_page = Loader.loadClass(WebXmlConfiguration.class,"javax.servlet.jsp.JspPage");
  }
  catch (Exception e)
  {
    //no jsp available, don't parse TLDs
    return;
  }
  TagLibListener tagLibListener = new TagLibListener(context);
  context.addEventListener(tagLibListener);
}

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

@Override
public void preConfigure(WebAppContext context) throws Exception
{
  try
  {
    Class<?> jsp_page = Loader.loadClass(WebXmlConfiguration.class,"javax.servlet.jsp.JspPage");
  }
  catch (Exception e)
  {
    //no jsp available, don't parse TLDs
    return;
  }
  TagLibListener tagLibListener = new TagLibListener(context);
  context.addEventListener(tagLibListener);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
public void preConfigure(WebAppContext context) throws Exception
{
  try
  {
    Class<?> jsp_page = Loader.loadClass(WebXmlConfiguration.class,"javax.servlet.jsp.JspPage");
  }
  catch (Exception e)
  {
    //no jsp available, don't parse TLDs
    return;
  }
  TagLibListener tagLibListener = new TagLibListener(context);
  context.addEventListener(tagLibListener);
}

代码示例来源:origin: stackoverflow.com

webAppContext.setWar(WAR_LOCATION);
webAppContext.addEventListener(new org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap(){
  @Override
  public void contextInitialized(ServletContextEvent event) {

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

MetaData metaData = _context.getMetaData();
if (metaData.getOrigin(clazz.getName()+".listener") == Origin.NotSet)
  _context.addEventListener(listener);

代码示例来源:origin: stackoverflow.com

webAppContext.addEventListener(new ContextLoaderListener(context));

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

MetaData metaData = _context.getMetaData();
if (metaData.getOrigin(clazz.getName()+".listener") == Origin.NotSet)
  _context.addEventListener(listener);

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

MetaData metaData = _context.getMetaData();
if (metaData.getOrigin(clazz.getName()+".listener") == Origin.NotSet)
  _context.addEventListener(listener);

代码示例来源:origin: stackoverflow.com

webAppContext.addEventListener(new ContextLoaderListener(context));

代码示例来源:origin: stackoverflow.com

webapp.addEventListener(...);
webapp.setInitParameter("resteasy.role.based.security", "true");
webapp.addFilter(...);

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

return;
context.addEventListener(listener);
context.getMetaData().setOrigin(className+".listener", descriptor);

代码示例来源:origin: jenkinsci/winstone

return;
context.addEventListener(listener);
context.getMetaData().setOrigin(className+".listener", descriptor);

代码示例来源:origin: apache/incubator-wave

context.addEventListener(contextListener);
context.addFilter(GuiceFilter.class, "/*", EnumSet.allOf(DispatcherType.class));
context.addFilter(GzipFilter.class, "/webclient/*", EnumSet.allOf(DispatcherType.class));

代码示例来源:origin: com.carecon.fabric3/fabric3-container-web-jetty

context.addEventListener(new ServletContextListener() {
  public void contextInitialized(ServletContextEvent sce) {

代码示例来源:origin: org.fabric3/fabric3-container-web-jetty

context.addEventListener(new ServletContextListener() {
  public void contextInitialized(ServletContextEvent sce) {

相关文章

WebAppContext类方法